Black Belt
- Join Date:
- Jul 2005
- Location:
- Upstate NY
- Posts:
- 21,876
- Plugin Contributions:
- 8
One Site / Two Stores ??? How? - A "store within a store"
In /includes/templates/your_template/sideboxes/tpl_categories.php, find```php
for ($i=0;$i<sizeof($box_categories_array);$i++) {
switch(true) {
and add a line to get
```php
$iteration_top = 0;//show comics cat tree - initialize - above for loop
for ($i=0;$i<sizeof($box_categories_array);$i++) {
switch(true) {
Find```php
if (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 {
```php
$iteration_top = str_replace("cPath=","",str_replace(strchr($box_categories_array[$i]['path'],"_"),"",$box_categories_array[$i]['path'])); //show comics cat tree - set = this iteration's topcat
if (($iteration_top != '23' and isset($cPath) and str_replace(strchr($cPath,"_"),"",$cPath) == '23')/*replace 23 with comics cPath*/ 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) OR (show comics cat tree) if not in/under comics top cat and comics is current top cat
} else {
Replace "23" in two places with your comics category cPath.
I haven't tested this version, so let me know how it works.