Change gallery image according to product option value

Ariel Mitevski asked on June 30, 2016 09:30

Hi,

I would like to update the product image in the product page according to the product option the user chooses.

You can see an example of it here: http://www.mynamenecklace.com/Product.aspx?p=1082&m=455

When the user select the "gold" option in the option category "Material", the featured image is automatically updated.

What do you think would be the best way to achieve this using Kentico?

Thanks,

Correct Answer

Dawid Jachnik answered on June 30, 2016 14:47

ShoppingCartItemSelector manage the product options selection. That why I wrote about this control. It renders the options and when you select it make postback via ajax and it's returning apriporiate price for selected options. I think you could sneak there and write some custom code for replacing images.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Dawid Jachnik answered on June 30, 2016 11:59

Hello,

did you tried with product options? I think it's achievable with ShoppingCartItemSelector control with a little bit customization.

I think if you read this helpful article about adding product to shopping cart you will find out the solution

http://devnet.kentico.com/articles/add-items-to-shopping-cart

0 votesVote for this answer Mark as a Correct answer

Ariel Mitevski answered on June 30, 2016 14:26

I'm not sure how this is related to the ShoppingCartItemSelector, I would just like to change the image (client-side) according the product option values in the product page. The user doesn't necessarily have to add the item to the shopping cart or anything.

I've tried the product option but unfortunately it doesn't give you the option to choose which image to display

0 votesVote for this answer Mark as a Correct answer

Ariel Mitevski answered on July 3, 2016 08:20

Got it. Thank you!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.