Skip to Content
author's profile photo Former Member
Former Member

How do I have multiple thumbnail images for a product on productDetail page

How I can have multiple thumbnail images for a product besides the primary image of a prodct on product details page.

Please suggest

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2014 at 11:44 AM

    Use the productGallery attribute.

    This contains a list of media container objects. Each media container holds an image in the various dimension formats.

    The Accelerator hot folder feature provides a simplified way of importing these.

    https://wiki.hybris.com/display/accdoc/Data+Importing+Capability+in+the+Commerce+Accelerator#DataImportingCapabilityintheCommerceAccelerator-MediaFeed

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2014 at 01:33 PM

    we will be creating medias and media containers for holding medias. Then we will assign the media containers to the products.

    Sample impex for all this is

    INSERT_UPDATE Media;mediaFormat(qualifier);code[unique=true];@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator];mime[default='image/jpeg'];$catalogVersion;folder(qualifier) ;1200Wx1200H;/1200Wx1200H/1225857_4679.jpg;$siteResource/images/1200Wx1200H/1225857_4679.jpg;;;images ;1200Wx1200H;/1200Wx1200H/1225857_4764.jpg;$siteResource/images/1200Wx1200H/1225857_4764.jpg;;;images ;515Wx515H;/515Wx515H/107701-5509.jpg;$siteResource/images/515Wx515H/107701-5509.jpg;;;images ;515Wx515H;/515Wx515H/1099285-1035.jpg;$siteResource/images/515Wx515H/1099285-1035.jpg;;;images ;300Wx300H;/300Wx300H/107701-5509.jpg;$siteResource/images/300Wx300H/107701-5509.jpg;;;images ;300Wx300H;/300Wx300H/1099285-1035.jpg;$siteResource/images/300Wx300H/1099285-1035.jpg;;;images ;96Wx96H;/96Wx96H/107701-5509.jpg;$siteResource/images/96Wx96H/107701-5509.jpg;;;images ;96Wx96H;/96Wx96H/1099285-1035.jpg;$siteResource/images/96Wx96H/1099285-1035.jpg;;;images ;65Wx65H;/65Wx65H/107701-5509.jpg;$siteResource/images/65Wx65H/107701-5509.jpg;;;images ;65Wx65H;/65Wx65H/1099285-1035.jpg;$siteResource/images/65Wx65H/1099285-1035.jpg;;;images ;30Wx30H;/30Wx30H/107701-5509.jpg;$siteResource/images/30Wx30H/107701-5509.jpg;;;images ;30Wx30H;/30Wx30H/1099285-1035.jpg;$siteResource/images/30Wx30H/1099285-1035.jpg;;;images

    INSERT_UPDATE MediaContainer;qualifier[unique=true];$medias;$catalogVersion ;897853_8772;/1200Wx1200H/897853_8772.jpg,/515Wx515H/897853_8772.jpg,/300Wx300H/897853_8772.jpg,/96Wx96H/897853_8772.jpg,/65Wx65H/897853_8772.jpg,/30Wx30H/897853_8772.jpg; ;553637-934;/515Wx515H/553637-934.jpg,/300Wx300H/553637-934.jpg,/96Wx96H/553637-934.jpg,/65Wx65H/553637-934.jpg,/30Wx30H/553637-934.jpg;

    UPDATE Product;code[unique=true];$picture;$thumbnail;$detail;$others;$normal;$thumbnails;$galleryImages;$catalogVersion ;23210;/300Wx300H/23210.jpg;/96Wx96H/23210.jpg;;/515Wx515H/23210.jpg,/515Wx515H/23213.jpg,/515Wx515H/23231.jpg,/515Wx515H/65652.jpg,/65Wx65H/23210.jpg,/65Wx65H/23213.jpg,/65Wx65H/23231.jpg,/65Wx65H/65652.jpg,/30Wx30H/23210.jpg,/30Wx30H/23213.jpg,/30Wx30H/23231.jpg,/30Wx30H/65652.jpg;/300Wx300H/23210.jpg,/300Wx300H/23213.jpg,/300Wx300H/23231.jpg,/300Wx300H/65652.jpg;/96Wx96H/23210.jpg,/96Wx96H/23213.jpg,/96Wx96H/23231.jpg,/96Wx96H/65652.jpg;23210,23213,23231,65652;

    Please follow this impex and create your set of images for products.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.