Any help with that code yellow1912?It's been about a week and a half...
Any help with that code yellow1912?It's been about a week and a half...
Hi, I am building my first zen cart and am learning loads. Yellow1912, I have been playing around with your contrib. and it's great, thanks!.
I have been trying to display ONLY the first sub-cat level all the time in the header using :
$_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 0)
But get the next level with it expanded also. Any way of just giving the first sub-cats only after selection of top cat elsewhere on the page?
I have also tried:
$_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 1)
Thanks, DanP
p.s. I am also looking forward to script for 'list all products under category selected'
I've been trying to find a way to display only the subcategories in the sidebox of the corresponding Parent Categories when that Category is selected on the Horizontal Tab. I thought I got it working until I clicked on the other categories but it still displays Subcategories of the First category instead of its own.
I have this code in the Category Sidebox template:
$content .= $_SESSION['category_tree']->build_category_string('', 'li', '<br />', 1, 1);
Display all sub cat products module included !!!
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Wooooo hooo.
I think the number of Zenners this will help may be underestimated. Ive been looking for this for over a year!
I will give this a try first thing in the morning.
THANKS SO MUCH!!!!
Thank you soooo much for your great effort. Was looking for it for quite some time. I tried it and it works. The only thing was that I had to add a space after the 'select distinct' statement in the index_filters/default_filter.php.
I![]()
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Fixed a few bugs with displaying all sub products.
For those who already installed it, simply over-write the default_filter.php
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Thanks for the mods, I have been playing around with them on a test site and they are great. I see many uses!
I currently have the following code in my cat tree:
This shows either the top 2 categories. OR for cPath 2 and cPath3 it shows just the subcategories in this.HTML Code:<?php $content = ''; if($cPath == 3) $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath'], 1); elseif($cPath == 2) $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath'], 1); else $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 0, 2); ?>
Is it possible to extend this so that cPath 2_549_651 and cPath 2_549_652 and cPath 2_549_653 (for example) shows the categories in cPath 2_549.
I have tried adding this code to my initial code:
I have also tried:HTML Code:<?php $content = ''; elseif($cPath == 2_549) $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 549, 1);
None of these work and it is still been controlled by the initial elseif cpath 2 statement.HTML Code:<?php $content = ''; elseif($cPath == 549) $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 549, 1);
Any ideas what I am on about and it is possible to achieve my desired result?