Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Montreal, Qc
    Posts
    51
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Nov 2007
    Location
    Montreal, Qc
    Posts
    51
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

  5. #5
    Join Date
    Nov 2007
    Location
    Montreal, Qc
    Posts
    51
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. blank page when there is only one product in a category
    By rajoo.sharma in forum General Questions
    Replies: 2
    Last Post: 27 May 2010, 05:34 PM
  2. When only one product in a category, it goes right to product -
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Feb 2010, 03:21 PM
  3. spanish -blank page in category when only one product
    By susaw in forum Addon Language Packs
    Replies: 6
    Last Post: 12 Aug 2009, 04:25 PM
  4. Error when category has only one product
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Feb 2009, 12:25 AM
  5. No category image when only one product
    By budfox in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 21 Feb 2007, 10:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg