Forums / Setting Up Categories, Products, Attributes / Blank page when category has only one product.

Blank page when category has only one product.

Locked

Views: 1,627

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Nov 2007, 8:54 PM
#1
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

Blank page when category has only one product.

Hi!

I'm a newbie with Zen Cart. I got hired a month ago by a company that had Zen Cart already installed and I'm still having issues finding my way around.

In this particular case, I just realized there was a bug in the website (probably prior to my arrival) where each time somebody was trying to display a category containing only one type a product, a blank page would appear instead of the listing. I don't seem to have any issue with categories with more than one or nothing at all.

Has anyone had this problem before? I'd like to know which files to check.

Thanks for your time!

23 Nov 2007, 5:19 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank page when category has only one product.

See if it shows the product type in the URL and then see if the tpl_ for that product type is blank, missing or otherwise corrupt on the server in either the template_default or the custom_template for the templates and overrides ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Nov 2007, 2:20 PM
#3
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

Re: Blank page when category has only one product.

Thanks for the reply!

The problem isn't a product display but a product listing in a specific category. There's no template specific to that category or any other; it's the same template for every category. Also, it wasn't clear in my original post but the problem doesn't happen for just one category but to three or four categories who all have in common that they contain exactly one item.

There must be a "for" loop somewhere that doesn't do its job, or something along the lines, but I don't know where to look.

23 Nov 2007, 2:23 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Blank page when category has only one product.

Ajeh isn't as far off as you might think.

Try this:
Admin->Configuration->Layout Settings->Skip 1-prod Categories ... turn this off.
Now what happens to the product listing?

And what happens if you click on the product link in that listing?

.
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.

23 Nov 2007, 7:19 PM
#5
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

Re: Blank page when category has only one product.

Solved! I only got access to all admin options yesterday and I'm still overwhelmed by the amount of stuff that don't need coding. I have no idea if I would have found this on my own so thanks guys!

Now, surfers have to click the category and then the product even if there's just one but, quite frankly, I can live with that!