Image Zoom

General ShopSite user discussion
Post Reply
utz119
Posts: 49
Joined: Thu Mar 29, 2007 2:46 pm
Location: New York

Image Zoom

Post by utz119 »

Hi Everyone!

I set up this Zoom script on a product page.
When you put a mouse over the product image, you get the zoom box.

I really like to have a selected color to be shown in the zoom box.
So when someone select "WHITE" from the color dropdown menu,
I like to have "WHITE" product image.

is there a way to do this?

Thanks in advance!
Tina
ShopSite Lauren
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT
Contact:

Re: Image Zoom

Post by ShopSite Lauren »

There isn't a ShopSite custom template tag for grabbing the option image. My guess would be that you would need to use JavaScript to use the same JavaScript function to put the image in place that ShopSite uses.

function ss_multichangeimage(ss) {
if (ss.selectedIndex != 0)
{
var image;
if (document.prod_img != undefined) {
image = image7[ss.options.selectedIndex];
if ((image != "") && (image != 'none')) {
document.prod_img.src=image;
} else {
if ((org_image != "") && (org_image != 'none')) {
document.prod_img.src=org_image;
}
}
}
}
return false;
}
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
Post Reply