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
Image Zoom
-
- Posts: 889
- Joined: Fri Aug 11, 2006 1:35 pm
- Location: Orem, UT
- Contact:
Re: Image Zoom
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;
}
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.
Contact me for help with any of your
custom ShopSite template questions.