Picture switch from model to plain

Hello,

I want a Function like at this Webside https://pesoclo.com/collections/all, I want a Button where the customer can switch from plain pictures to model pictures.

can anyone help me?


I have done this before inside the origin theme. So the workaround with custom code is in the product admin backend you set the main product image which you want to show first as the main image, so this default, whatever image you put first in product media will come as the main image, now the other image which you want to show as the model image keep it second on the list or it could be any number, number is just for identification and then with custom code we can at first hide that and then on click show that.

Or you can add alt text in images for identification. Both works.

Best

Hello my friend,

can you help me to add this function?