Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    99
    Plugin Contributions
    0

    Default List each category products?

    Is there a way to list the products of a category in a drop-down. Right now I'm using the following to generate header bar. But what I use to get to the category products.

    <?php
    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
    ?>
    <?php if (CATEGORIES_TABS_STATUS == '0' && sizeof($links_list) >= 1) { ?>
    <ul id="navmenu">
    <?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
    <li id="col1" <?php if($n !== ++$run){ echo ' style="border-right: 2px; border-right-style: solid; border-right-color: #66ff00;"';} ;?>><?php echo $links_list[$i];?></li>
    <?php } ?>
    </ul>
    <?php } ?>

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: List each category products?

    Quote Originally Posted by kdlklm View Post
    Is there a way to list the products of a category in a drop-down. Right now I'm using the following to generate header bar. But what I use to get to the category products.

    <?php
    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
    ?>
    <?php if (CATEGORIES_TABS_STATUS == '0' && sizeof($links_list) >= 1) { ?>
    <ul id="navmenu">
    <?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
    <li id="col1" <?php if($n !== ++$run){ echo ' style="border-right: 2px; border-right-style: solid; border-right-color: #66ff00;"';} ;?>><?php echo $links_list[$i];?></li>
    <?php } ?>
    </ul>
    <?php } ?>
    Look at the following page http://www.zen-cart.com/docs/phpdoc-...ories.php.html

    And review the function: zen_get_categories_products_list
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Replies: 2
    Last Post: 19 May 2015, 10:38 AM
  2. Qty to each option on products list
    By ogawa in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Feb 2010, 07:47 AM
  3. List All Products of each Subcategory when click Main Category
    By digulu in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Dec 2009, 11:51 PM
  4. Category with no products dont display"There are no products to list in this category
    By atracksler in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 3 Apr 2008, 05:47 AM
  5. Replies: 1
    Last Post: 17 Jan 2008, 08:52 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