Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product details page doesn't show

Product details page doesn't show

Locked

Views: 2,500

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
4 Feb 2008, 10:46 PM
#1
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Product details page doesn't show

The products list normally. But when a product is selected the page just shows the left menu, the 'next' - 'previous' buttons, and doesn't show the product information or pictures.

I'm using 1.3.8 Zen Cart.

What would be the area that controls that? I've gone over the tpl_product_info_display.php file vs. the original, and they are the same.

4 Feb 2008, 10:52 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

You would also need top look at the modules/pages/products_info folder and check the files there. But why not give us a link to the site, there may well be clues there that you may be overlooking?

4 Feb 2008, 11:43 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

Although your product info page isn't blank, it does stop dead. This may well mean that there is a PHP error that is being suppressed. As a first step I would recommend installing the debug facility referred to in this FAQ Entry. And then taking a look at the error log that it produces to see if there is an obvious error being reported (if there is it will probably tell you the exact file and line number where the error is occurring).

4 Feb 2008, 11:51 PM
#4
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

No error log to check.

It was working earlier today, all I did was upload some images.

4 Feb 2008, 11:53 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

Were they unusually large images? Where they RGB rather than CMYK images? It seems that your site enters the main images module, but never comes out the other site.

4 Feb 2008, 11:58 PM
#6
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

The images were replacements of previously larger versions. I just uploaded opimized versions.

5 Feb 2008, 12:04 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

It's very rare that code just stops without returning a PHP or SQL error. I've only seen it once. If the debug mod isn't generating an error log, then you would need to go after it line by line.

You know from the comment lines generated that you go into the main image template module, so you either needed a debugging tool that allows you to step through the code line by line to see where it fails, or insert echo statements by hand to track it down. Once you find the point of failure, the reason is usually not difficult to work out.

5 Feb 2008, 12:12 AM
#8
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

Using Firebug this is what I see.

<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body id="productinfoBody">
<div id="mainWrapper">
<div class="messageStackWarning larger">
</div>
<div id="headerWrapper">
</div>
<table id="contentMainWrapper" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td id="navColumnOne" class="columnLeft" style="width: 150px;">
</td>
<td valign="top">
<div id="productGeneral" class="centerColumn">
<form enctype="multipart/form-data" method="post" action="http://website/zencart/index.php?main_page=product_info&cPath=3_20&products_id=13&action=add_product" name="cart_quantity">
<div id="categoryIcon" class="categoryIcon" align="left">
<a href="http://website/zencart/index.php?main_page=index&cPath=3_20">3rd Member Parts</a>
</div>
<div class="navNextPrevWrapper centeredContent">
<p class="navNextPrevCounter">Product 27/27</p>
<div class="navNextPrevList">
</div>
<div class="navNextPrevList">
</div>
<div class="navNextPrevList">
</div>
</div>
</form>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="lbOverlay" style="visibility: hidden; opacity: 0;"/>
<div id="lbCenter" style="width: 400px; height: 300px; margin-left: -200px; display: none;">
</div>
<div id="lbBottomContainer" style="display: none;">
</div>
</body>
</html>

Isn't missing something like this.

<div id="categoryIcon" class="categoryIcon" align="left">
</div>
<div class="navNextPrevWrapper centeredContent">
</div>
<div id="productMainImage" class="centeredContent back">
</div>
<h1 id="productName" class="productGeneral"></h1>
<h2 id="productPrices" class="productGeneral"></h2>
<div id="productDescription" class="productGeneral biggerText">
</div>
<br class="clearBoth"/>
<div id="cartAdd">
</div>
<ul id="productDetailsList" class="floatingBox back">
</ul>
<br class="clearBoth"/>
</form>
5 Feb 2008, 12:19 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

This is a case where firebug isn't very helpful as it shows you what the page looks like after it has been rendered by your browser, i.e. after the browser has done its best to clean up and close missing end tags.

What you really need to see is what it looks like before it makes its corrections. To do this, view the page source and you'll see that it ends rather abruptly like this ...> <!--bof Prev/Next top position -->

<div class="navNextPrevWrapper centeredContent"> <p class="navNextPrevCounter">Product 3/12</p> <div class="navNextPrevList"><a href="http://www.YOUR_SITE.com/lamb/index.php?main_page=product_info&cPath=4_21_53&products_id=247"><img src="includes/templates/template_default/buttons/english/button_prev.gif" alt="Previous" title=" Previous " width="38" height="15" /></a></div> <div class="navNextPrevList"><a href="http://www.YOUR_SITE.com/lamb/index.php?main_page=index&cPath=4_21_53"><img src="includes/templates/template_default/buttons/english/button_return_to_product_list.gif" alt="Return to the Product List" title=" Return to the Product List " width="47" height="15" /></a></div> <div class="navNextPrevList"><a href="http://www.YOUR_SITE.com/lamb/index.php?main_page=product_info&cPath=4_21_53&products_id=239"><img src="includes/templates/template_default/buttons/english/button_next.gif" alt="Next" title=" Next " width="38" height="15" /></a></div> </div> <!--eof Prev/Next top position--> <!--bof Main Product Image -->
5 Feb 2008, 5:04 PM
#10
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

I understand, but I can't figure out why it ends.

5 Feb 2008, 5:05 PM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

Which line of code have you traced it to?

5 Feb 2008, 5:19 PM
#12
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

I don't know where to look in the code.

I know it stops at <!--bof Main Product Image -->

After that it's supposed to go to <div id="productMainImage" class"centeredContent back"> And load Zen Slimbox for the images.

Then it's supposed to go to <h1 id="productName" class="productGeneral" and list the product name.

etc.

5 Feb 2008, 5:24 PM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

When you installed the debug mod, did it generate nothing at all, or just no error messages?

5 Feb 2008, 5:30 PM
#14
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

Nothing generated in the cache directory that is new.

5 Feb 2008, 7:05 PM
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product details page doesn't show

Not sure if your next step is zen lightbox of fual slimbox. Either way you will need to pin down the specific place where it is failing. From what you've said this looks as though it may be in the main_product_image module.

I'd check whether this is the case by putting echo statements either side of the call to it.

5 Feb 2008, 7:09 PM
#16
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

There aren't any changes to the main_product_image module.

I turned off slimbox, no go, I even upgraded slimbox.

I'm going to move a backup from last week to see if it corrects it.

5 Feb 2008, 7:53 PM
#17
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

Moving back to last weeks backup worked just fine.

I ran out of patience trying to figure out what the actual problem was.

5 Feb 2008, 8:14 PM
#18
tacoma avatar

tacoma

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: Product details page doesn't show

Shoot forgot to thank you kuroi for you help!

THANKS!!!!!!!!!!!!