You can replace
if($current_category_id == 13) {
with
if((int)$_GET['cPath'] == 13) {
which strips any subcat ids off of the current $cPath value.
You can replace
if($current_category_id == 13) {
with
if((int)$_GET['cPath'] == 13) {
which strips any subcat ids off of the current $cPath value.
Thanks a lot, works like a charm!
What are the conditionals to hide the category in the regular sidebox? I have now twice the category using Separate Category Sidebox?
Thanks
Find this in tpl_categories.phpand addPHP Code:
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 {
$box_categories_array[$i]['path']) == 'cPath=##' or
(substituting your cat id for ##)
to getThis only covers the main category; you may need a slightly different form of test if subcats are a problem for you.PHP Code:
if ($box_categories_array[$i]['path']) == '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)
} else {
Hi,
Thank you for your reply. I tried your suggestion and It didnīt work. the pages display no content:
if ($box_categories_array[$i]['path']) == 'cPath=236' 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)
Any idea?
Thanks
Hi again,
This is my web site:
http://wernerparts.com/
Sorry. It works NOW. THANKS!!!!!!!
Hi,
It doesnīt work properly. It opens another category-subcategory when Iīm on the product info page:
Iīm on Green Bull ladders- Rung Lock Kit, but the page displays the lock for the Fiberglass Ladders and thatīs wrong.
http://wernerparts.com/index.php?mai...roducts_id=647
Any suggestion?
Thanks
Jorge
Yes, it looks like the Separate Category sidebox is giving incorrect cPath links. The rung lock kit is in cPath 236_238, but the SC link points to cPath 238, which is not actually a top category but a subcat. This may also affect the breadcrumbs which do not display correctly on the cPath=238 page.
I don't know the code used in the mod, so can't say what may have gone wrong in your copy of it.
Hi,
Thanks again. You wrote this before:
You can replace
if($current_category_id == 13) {
with
if((int)$_GET['cPath'] == 13) {
which strips any subcat ids off of the current $cPath value.
Where do i need to change that?
Bookmarks