Well, I was really sure I could get it working without assistance... It *does* work, but not on the home page, and I'm seriously stumped.
I'm going for the "subcats only" variant here, one top category per box. The relevant snippets of code are below:
PHP Code:
/* test for cats to display */
if(in_array(str_replace("cPath=","",$box_categories_array[$i]['path']), explode(",",'2,2_4,2_5'))) {
So only Cpath 2 and the two subcats that are set up at the moment... fairly simple.
PHP Code:
// subcat limit 2007-12-20
if (substr_count($box_categories_array[$i]['path'],'_') == 0 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)
} else {
And the subcat code, which works. Except the box shows empty on the home page. If I go to the top category listing, or a product, or anywhere else, I get just the two subcats in the box as I want it.
How is this possible? Thanks in advance for any advice.
Bookmarks