cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I set the thumbnail of a product?

tpizarro93
Explorer
0 Kudos
479

My product has a list of images and I have to select the first one. There is a widget to modify the thumbnail?

Accepted Solutions (0)

Answers (2)

Answers (2)

adiputera
Active Participant
0 Kudos

I think you post this also in stackoverflow, so I'll post my answer in stackoverflow here.

You need to override the OOTB definition of base context -> preview urlQualifier. Here is my example, I change the default of the mini image to get from the picture field instead of the thumbnail.

    	<context merge-by="type" parent="GenericItem" type="Product" component="base">
<y:base>
.........
<y:preview urlQualifier="picture?:thumbnail"/>
</y:base>
</context>
former_member634058
Active Participant
0 Kudos

This thumbnail comes from the thumbnail image which you can see if you navigate to the Multimedia tab of the product. You can try setting or modifying the content/image there.

Thanks.

tpizarro93
Explorer
0 Kudos

Yes, but there is a widget or something to modify and get this image from another field?