Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Posts
    2
    Plugin Contributions
    0

    Default Products listing

    Hi, I am relatively new to Zen Cart. I understand the override system but am unsure which page a file I wish to modify relates to - I want to make changes to the way the products show up on the category page. I THINK the file may be product_listing.php. Can anyone tell me what the file I require is and which page it refers to so I can create the appropriate jscript*.php file in the appropriate folder.

    I want the page to be able to load specific js scripts which I have been unable to do at this stage.

    If it helps, the address bar in IE has this as part of the address:

    index.php?main_page=index&cPath=44_48.

    Hope someone can help.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,400
    Plugin Contributions
    87

    Default Re: Products listing

    The /includes/modules/YOUR_TEMPLATE/product_listing.php affects the display of the product listing (i.e. one of the main_page=index) pages. If you have javascript that should be run for a particular category, you could create a file named /includes/modules/pages/index/jscript_customized.php. At the beginning of the file (per your example), you could have:

    Code:
    if ($_GET['cPath'] == '44_48') {
      <include your category-specific jscript here>
    }

  3. #3
    Join Date
    Feb 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Products listing

    Thanks for that. It isn't working properly yet but you have pointed me in the right direction. Thanks again.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,400
    Plugin Contributions
    87

    Default Re: Products listing

    Happy to help; here's the link to the WIKI on JavaScript Overrides.

 

 

Similar Threads

  1. Products not listing correctly in Product Listing
    By Blackwaterphil in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Dec 2009, 06:26 PM
  2. How to Make Categories Listing Look Like New Products Listing?
    By bsteinagel in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2008, 08:53 PM
  3. How to use a different listing rule for listing new products in a main page???
    By jsteven in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Dec 2007, 08:44 AM
  4. Can I use features of All Products Listing in my Product Listing page?
    By bearaman in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jun 2007, 05:56 PM
  5. making New Products Listing look like Category/Manufacturer Listing ??
    By simplifiedmedia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2006, 10:43 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