Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    114
    Plugin Contributions
    0

    Default Change the way products are displayed on a category page

    I have many categories on my site, which is a bookstore. All category pages display the books within the category in a three-column layout. Each book displays the following:

    Cover art linked to product page
    Book Title
    Book Author
    Book Price

    I have a Coming Soon (upcoming products) page that displays the books in the same three-column layout, but with different information:

    Cover art linked to product page
    Book Title
    Book Author
    Release Date

    I cannot get the upcoming products page to paginate, so I want to add the Coming Soon products to a category of their own. HOWEVER, I can't get the details to display properly. I want the release date listed, NOT the price.

    Is there a way to create a category-specific product template? I can't do it in a stylesheet.

    Thanks in advance!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Change the way products are displayed on a category page

    You could add coditional code to product_listing.php that would test for the category id = whatever it is, and skip the price and output the release date if true; otherwise output the price and skip the release date. This would require adding a term to the SQL query in (I think) main_template_vars.php to fetch the release date if it exists, and process that into the listing array. Then you would have the data to use in output if needed. Use the upcoming products code to see exactly how to fetch the release date.

  3. #3
    Join Date
    Jan 2010
    Location
    Richmond, Virginia, United States
    Posts
    114
    Plugin Contributions
    0

    Default Re: Change the way products are displayed on a category page

    Unfortunately, I don't understand your response. I am unfamiliar with PHP coding and SQL queries.

    If it isn't a simple change I can make to a template file, then I guess it's just not do-able for me. Thanks anyway.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Change the way products are displayed on a category page

    Sorry, it would require several changes to several files, and require good PHP skills. Making a new product type (the other way to achieve this) would also require PHP and Zen Cart knowledge.

 

 

Similar Threads

  1. Change the way additional images are displayed
    By apriigem in forum General Questions
    Replies: 1
    Last Post: 29 Mar 2013, 10:23 PM
  2. Changing the way products are displayed
    By CestProuve in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Nov 2008, 08:13 AM
  3. How products are displayed within a category
    By xman888 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jan 2008, 01:18 AM
  4. Changing the Way Products are Displayed
    By TurtleDove in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Jun 2006, 05:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR