More info image pop up window

General ShopSite user discussion

More info image pop up window

Postby midfin » Thu Oct 09, 2008 9:32 am

I need the image in the more info page to launch a larger image of the product when clicked on.

Not sure how to do that.
midfin
 
Posts: 31
Joined: Fri Sep 05, 2008 11:58 am

More Info Image Pop-up Window

Postby BFChris » Thu Oct 09, 2008 9:46 am

It's possible, but you'd need to edit the template for it.

What kind of new window do you want? A standard pop-up (new browser window), a facebook style (embedded in the page), etc.?

You'll need javascript to create the new window, then the link wrapped around the image will need to call the javascript and provide the source of the larger image....

Also, where is the larger image coming from? Are you using the Shopsite resized images?
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby loren_d_c » Thu Oct 09, 2008 2:27 pm

There is an example in the Custom Template Cookbook that might be helpful to get you started:

http://www.shopsite.com/templates/cookbook/product8-popup.shtml

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby midfin » Thu Oct 09, 2008 2:55 pm

Thank you.

I am getting an error but I want to call up the orginal size of the shopsite image. I got the pop up windo to open but its giving me a 404 error

here is the code (i want it to pop up on the the more info page)<a href="javascript:showPicture('[-- IMAGE Product.MoreInformationGraphic --]')">[-- PRODUCT.Graphic --]</a>
midfin
 
Posts: 31
Joined: Fri Sep 05, 2008 11:58 am

Postby loren_d_c » Thu Oct 09, 2008 3:12 pm

Instead of just [-- IMAGE Product.MoreInformationGraphic --], try media/[-- IMAGE Product.MoreInformationGraphic --].

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 65 guests