Announcement

Collapse
No announcement yet.

Product Image Types = None

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product Image Types = None

    I have a client with close to 1MM products on his site. Over 77k products had their images uploaded without assigning an image type. Some products have multiple images too (all without an image type assigned).....
    Is there a way to change at least one of those images assigned to "none" to "main" en mass rather than one at a time?

    I can't help but think being able to export "IMAGE_TYPE:NONE" might somehow help....
    You obviously can export "IMAGE_TYPE:MAIN" but is exporting "IMAGE_TYPE:NONE" even possible? Or on the list of things to add in future updates?

    Thanks in advance!
    David Limon
    E-Commerce Signal

    [email protected]
    http://www.ecommercesignal.com
    http://www.davidlimon.com

    #2
    Re: Product Image Types = None

    What I've done on a number of occasions it to remap the full-sized image field to the IMAGE_TYPE:MAIN in the import settings. I also create an Import just to reassign these.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #3
      Re: Product Image Types = None

      Thanks for the quick reply Leslie!
      I usually do the same thing too (take the legacy full size image and upload it to IMAGE_TYPE:MAIN).

      The person who uploaded the images did the same thing (uploaded the Legacy full size image to additional images BUT without assigning an image type).

      If I repeat the process and assign the image type MAIN, the image will be displayed on the product page twice (once for MAIN and once for NONE).
      There's gotta be a fix for this???
      David Limon
      E-Commerce Signal

      [email protected]
      http://www.ecommercesignal.com
      http://www.davidlimon.com

      Comment


        #4
        Re: Product Image Types = None

        We've had to do something similar and we did it by writing a page template that outputs XML to update the image type.

        Here is what we did at a high level:

        1. Created a new page with the sitemap item assigned so we can have it loop through all products.
        2. Then we used the toolkit function customimage to loop though all images and for the first image only output the XML to make it the main image type.
        3. Import the XML via the standard XML import

        The XML looks something like this:

        Code:
        <ProductImage_Update_Type product_code="test" filepath="graphics/00000001/s2k_silver_front.jpg" type_code="main" />
        Last edited by Rick Wilson; 05-14-15, 01:44 PM.
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Product Image Types = None

          Hmmm.... Interesting idea.
          I'll give that a try.

          Thanks Brennan!
          David Limon
          E-Commerce Signal

          [email protected]
          http://www.ecommercesignal.com
          http://www.davidlimon.com

          Comment

          Working...
          X