Forums / Templates, Stylesheets, Page Layout / List each category products?

List each category products?

Views: 640

Results 1 to 2 of 2
9 Oct 2014, 5:22 PM
#1
kdlklm avatar

kdlklm

New Zenner

Join Date:
Apr 2005
Posts:
77
Plugin Contributions:
0

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 } ?>
9 Oct 2014, 11:01 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: List each category products?

kdlklm:

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-1-5-0/functions/_includes---functions---functions_categories.php.html

And review the function: zen_get_categories_products_list

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...