Forums / Templates, Stylesheets, Page Layout / Missing main image on product info page

Missing main image on product info page

Started by marknew on 13 Apr 2007, 12:25 AM · Views: 2,554

Results 1 to 6 of 6
13 Apr 2007, 12:25 AM
#1
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Missing main image on product info page

Please Help. I've just about got my product info page layout how i want it but now i've lost the main image. I have installed 'lightbox', 'image handler' and 'swap image on mouseover' and all was working fine. I have the extra images showing , but not the main one.

The image is in the code but doesn't show on the page.
Here's the page
http://www.rosecliffe-arabians.com/straight_egyptian/index.php?main_page=product_info&cPath=2&products_id=13

here's the code to show the image

<!--bof Category Icon --> <div id="categoryIcon" class="categoryIcon" align="left">Mares</div> <!--eof Category Icon --> <!--bof Prev/Next top position --> <!--eof Prev/Next top position--> <!--bof Main Product Image --> <br> <div id="productMainImage" class="centeredContent back"> <!-- begin zen lightbox v1.3 aclarke 2006-10-20 --> <script language="javascript" type="text/javascript"> <!-- document.write('<a href="images/1_Simeon-Succa.jpg" rel="lightbox[gallery]" title="Simeon Succa"><img src="images/1_Simeon-Succa.jpg" alt="Simeon Succa" title=" Simeon Succa " width="260" height="184" style="position:relative" onmouseover="showtrail('images//1_Simeon-Succa.jpg','Simeon Succa',260,184,500,354,this,0,0,260,184);" onmouseout="hidetrail();" /><br /> <span class="">larger image</span> </a>'); //--> </script> <!-- end zen lightbox v1.3 aclarke 2006-10-20 --> <noscript> <a href="http://www.rosecliffe-arabians.com/straight_egyptian/index.php?main_page=popup_image&pID=13" target="_blank"><img src="images/1_Simeon-Succa.jpg" alt="Simeon Succa" title=" Simeon Succa " width="260" height="184" style="position:relative" onmouseover="showtrail('images//1_Simeon-Succa.jpg','Simeon Succa',260,184,500,354,this,0,0,260,184);" onmouseout="hidetrail();" /><br /><span class="listingProductImage">larger image</span></a> </noscript> </div> <!--eof Main Product Image--> <!--bof Product Name--> <h1 id="productName" class="productGeneral">Simeon Succa</h1> <!--eof Product Name-->
18 May 2011, 5:03 PM
#2
bloomingvine avatar

bloomingvine

New Zenner

Join Date:
Jan 2011
Location:
midwest USA
Posts:
73
Plugin Contributions:
0

Re: Missing main image on product info page

I'm having nearly the same issue so I would love to get the answer to your fix as well. I just did a fresh install of zencart 1.3.9h and have lightbox, image handler 3 and multi cross sell installed. used a repopulate mod to import from the old shop which is live. Everything is there and works.. I'm still working on settings and listing stuff.. but my main product image dissapeared. lightbox knows where it is and uses it.. its on the server, but the product listing page won't display it. I think we have both run into the same problem. http://bloomingvinedesign.com/shop/

all products are affected.

I reject your reality and substitute my own--Adam Savage

6 May 2012, 6:03 PM
#3
johnlewisdesign avatar

johnlewisdesign

New Zenner

Join Date:
Jan 2012
Location:
South West UK
Posts:
17
Plugin Contributions:
0

Re: Missing main image on product info page

bloomingvine:

http://bloomingvinedesign.com/shop/

all products are affected.

I see you fixed this, and am having the same issue. I think its to do with the image path in

zen/includes/templates/classic/templates/tpl_product_info_display.php

Can you possibly share the code between

<!--bof Main Product Image -->

and

<!--eof Main Product Image-->

at around line 50? Or can anyone? I'm trying to recover it too. Cheers.

6 May 2012, 6:19 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Missing main image on product info page

You can see the official original version of the file by looking in /includes/templates/**template_default/**templates
And then make corresponding fixes to your custom version of the file as necessary.

And/or put back the original version of the /includes/modules/main_product_image.php file instead of whatever you replaced it with when installing plugins/addons.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 May 2012, 6:43 PM
#5
johnlewisdesign avatar

johnlewisdesign

New Zenner

Join Date:
Jan 2012
Location:
South West UK
Posts:
17
Plugin Contributions:
0

Re: Missing main image on product info page

Thanks Dr B I shall do this now

6 May 2012, 7:33 PM
#6
johnlewisdesign avatar

johnlewisdesign

New Zenner

Join Date:
Jan 2012
Location:
South West UK
Posts:
17
Plugin Contributions:
0

Re: Missing main image on product info page

Hmm I can't track this down anywhere - nothing made a difference.

I tried replacing

includes/templates/template_default/templates/tpl_modules_additional_images.php
includes/templates/template_default/templates/tpl_modules_main_product_image.php
includes/modules/classic/additional_images.php
includes/modules/classic/main_product_image.php

Nothing makes a difference. The problem persists when you switch templates too.
What displays the image on the page?

I must have missed it. I imported the products via Apsona with custom URLs and FTPd the images to their location. All other product sizes work, I have /medium and /large folders in my images, all renamed and linking great - unless on main product page.