More info page Image problem

General ShopSite user discussion

More info page Image problem

Postby Conor » Tue Jul 06, 2010 5:47 am

Ciao,

I am pulling my hair out over this, the past 30 or so product pages I have edited to add new images both thumbnails and larger 'more info page image' but when I click on the thumbnail the large version is not opening in the pop up window. This is not a browsers problems because the other pages still work fine, I cannot figure it out and cannot see anything different that I have done.

I would appreciate any and all help.

Thanks in advance.
Conor
 
Posts: 3
Joined: Tue Jul 06, 2010 5:41 am
Location: Italy

Postby Jim » Tue Jul 06, 2010 5:56 am

We will need to see examples of the pages that work and don't work to be able to tell what is different.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Sorry, that would help!!

Postby Conor » Tue Jul 06, 2010 6:00 am

Conor
 
Posts: 3
Joined: Tue Jul 06, 2010 5:41 am
Location: Italy

Postby Jim » Tue Jul 06, 2010 9:00 am

The one that works has the javascript
Code: Select all
<a href="javascript:showPicture('media/images/DSC_0069.JPG')">


The one that doesn't work has
Code: Select all
<a href="javascript:showPicture('2010/bath-and-floor-wash/images/adam-and-eve.jpg')">


Note that the first is coming from the store's media directory where ShopSite expects images to be. while the other one has some other path.

The images being displayed on the page are coming from
Code: Select all
<img  src="http://texmexcurios.com/store/media/thumbnails/tnDSC_0069.JPG" alt="tnDSC_0069.JPG" >
for the one that works and
Code: Select all
<img  src="http://texmexcurios.com/store/media/2010/bath-and-floor-wash/thumbs/adam-and-eve.jpg"
for the one that doesn't work

So on the one that doesn't works you probably need to add "media/" before the image path. If you have different product templates for each page you will probably just need to edit the one product template to include the "media/"

Also make sure that the include file for the javascript showPicture is referenced in your page template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Grazie!

Postby Conor » Wed Jul 07, 2010 1:53 am

Thanks Jim,

It was not the media folders and I was trying out different URL's, I know the media was missing, anyway found the problem thanks to you mentioning the javascipt, I forgot to add it to the templates!

All good now, cheers.
Conor./
Conor
 
Posts: 3
Joined: Tue Jul 06, 2010 5:41 am
Location: Italy


Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 61 guests