Image Zoom

General ShopSite user discussion

Image Zoom

Postby utz119 » Thu Aug 05, 2010 6:04 pm

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
utz119
 
Posts: 49
Joined: Thu Mar 29, 2007 2:46 pm
Location: New York

Re: Image Zoom

Postby ShopSite Lauren » Thu Aug 12, 2010 10:37 am

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.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 85 guests