Zen Cart Logo
Forums / General Questions / Wrong Image on Product Pages

Wrong Image on Product Pages

Views: 947

Results 1 to 5 of 5
18 Jun 2011, 1:59 AM
#1
bacbladerunner avatar

bacbladerunner

New Zenner

Join Date:
Feb 2011
Location:
California
Posts:
65
Plugin Contributions:
0

Wrong Image on Product Pages

I don't know if this is a Zen issue, or something my programmer did. If I search products, the returned list has the correct image of the different products. But after clicking on one and going to the individual product page, the image is a general photo of the TYPE of product, but not for the particular product displayed. I have checked the image for the category thinking that maybe that is what is being displayed, but there is not an image assigned.

Does Zen have the ability to display the individual image on the product page? I am wondering if maybe Zen does not, and therefore my programmer placed this generic image here. He is not available for me to ask.

Thanks,

18 Jun 2011, 2:18 AM
#2
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Wrong Image on Product Pages

  1. A link to your site would help us tell you whats going on
  2. What you describe doesn't sound right, have a look at other zencarts out there to see the product image will show on the product info page by default

see this site
http://sweetbrucies.co.nz/index.php?main_page=products_all

If you click on a product, you get taken to the product info page which displays the same image, albeit the larger version

18 Jun 2011, 2:39 AM
#3
bacbladerunner avatar

bacbladerunner

New Zenner

Join Date:
Feb 2011
Location:
California
Posts:
65
Plugin Contributions:
0

Re: Wrong Image on Product Pages

I see from your link that it does display there. I had some custom changes to this page to force customers through our New Blade Selector (removed ability to buy here since we need info from them before we can custom grind this blade). My programmer will be available soon.

The site is californiacoldsaw.com
I hope to go live in a week after a few more issues to work out.

18 Jun 2011, 4:22 AM
#4
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Wrong Image on Product Pages

  1. what version of zencart are you using, because the version of image handler being used (from what i can tell from the js file), is at least 2 or 3 years out of date if not older, you should be using Image Handler 3 on a modern site, especially as the old js doesn't work correctly in Opera, Chrome, Safari, IE9

The image IS there, or at least the code appears to be, It looks like someone had a go at altering the Image handler code badly if i am reading it right

I went to this page here

http://californiacoldsaw.com/cart/index.php?main_page=index&cPath=9_5

clicked on the first product

http://californiacoldsaw.com/cart/index.php?main_page=product_info&cPath=9_5&products_id=6

now look at the source code

<!--bof Main Product Image -->
 
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<a href="javascript:popupWindow(\'http://californiacoldsaw.com/cart/index.php?main_page=popup_image&pID=6\')"><img src="bmz_cache/6/63b7ac08c19e81a85c39ab597da17f46.image.147x120.jpg" alt="Lenox CycleHD Coolant - 1 Gallon Bottle" title=" Lenox CycleHD Coolant - 1 Gallon Bottle " width="147" height="120" style="position:relative" onmouseover="showtrail('bmz_cache/c/ceaafe47b6a8594f1c70e74b9af99b1e.image.368x300.jpg','Lenox CycleHD Coolant - 1 Gallon Bottle',147,120,368,300,this,0,0,147,120);" onmouseout="hidetrail();"  /><br /><span class="imgLink">larger image</span></a>');
//--></script>
<noscript>
<a href="http://californiacoldsaw.com/cart/index.php?main_page=popup_image&pID=6" target="_blank"><img src="bmz_cache/6/63b7ac08c19e81a85c39ab597da17f46.image.147x120.jpg" alt="Lenox CycleHD Coolant - 1 Gallon Bottle" title=" Lenox CycleHD Coolant - 1 Gallon Bottle " width="147" height="120" style="position:relative" onmouseover="showtrail('bmz_cache/c/ceaafe47b6a8594f1c70e74b9af99b1e.image.368x300.jpg','Lenox CycleHD Coolant - 1 Gallon Bottle',147,120,368,300,this,0,0,147,120);" onmouseout="hidetrail();"  /><br /><span class="imgLink">larger image</span></a></noscript>
</div><!--eof Main Product Image-->

Those images are on the server, but the code there is Borked, it looks like they have tried to put the hover effect on to the main image, (which was a fairly shaky hack in the very old version and has since been dropped), Anyway this is the code from the site I linked to earlier

<!--bof Main Product Image -->
 
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<a href="javascript:popupWindow(\'http://sweetbrucies.co.nz/index.php?main_page=popup_image&pID=45\')"><img src="bmz_cache/2/283b856abb6c5a26027efa3ec52a4f9b.image.89x120.jpg" alt="Dragon Sweets - Assorted Creams 2kg Bulk" title=" Dragon Sweets - Assorted Creams 2kg Bulk " width="89" height="120" /><br /><span class="imgLink">larger image</span></a>');
//--></script>
<noscript>
<a href="http://sweetbrucies.co.nz/index.php?main_page=popup_image&pID=45" target="_blank"><img src="bmz_cache/2/283b856abb6c5a26027efa3ec52a4f9b.image.89x120.jpg" alt="Dragon Sweets - Assorted Creams 2kg Bulk" title=" Dragon Sweets - Assorted Creams 2kg Bulk " width="89" height="120" /><br /><span class="imgLink">larger image</span></a></noscript>
</div><!--eof Main Product Image-->

Something not right with your code

edit------------------------------------------

the script and noscript tags in the "Main Product Image" div are both showing up as "display: none;" when i view them in Dragonfly

18 Jun 2011, 8:01 PM
#5
bacbladerunner avatar

bacbladerunner

New Zenner

Join Date:
Feb 2011
Location:
California
Posts:
65
Plugin Contributions:
0

Re: Wrong Image on Product Pages

I am using 1.3.9h, installed about 2 months ago. As I mentioned, this page of the cart HAS been modified. I will pass your comments on to my programmer hopefully for a quick fix.

Thank you for pointing me in the right direction.