Zen Follower
- Join Date:
- Jun 2008
- Posts:
- 187
- Plugin Contributions:
- 0
$current_category_id incorrect on product page
Hey guys,
I have a problem with zencart defaulting to 'master category id' on a product page.
for some reason our cart doesn't seem to follow the true path of $current_category_id.
From a fresh install it seems that the $current_category_id is adeared to when clicking through to a product page.
my problem is this
e.g.
i have product 235 - its in category 6(master) and category 7.
I navigate from category 6 to the product and $current_category_id = 6 -Which is correct.
I navigate from category 7 to the product page and $current_category_id = 6 - Which is incorrect.
and weirder still the url structure takes the last place the product was copied to regardless of if the product came from the master category page.
so for example product 789 is in category 111(master), 222, 333. I copied the product last to cat 333.
I navigate from 111 to product and Url structure would be /shop/333/789.html.
I navigate from 222 to product and Url structure would be /shop/333/789.html.
I navigate from 333 to product and Url structure would be /shop/333/789.html.
Clearly its somthing that has been messed about with before i arrived here, because its always done this and only now is it affecting functionality where i need 'current_category_id' to be correct so that my custom nav shows only in a certain category.
At category level my custom nav shows fine because 'current_category_id' is still being adeared to but then when i click on the product from this cat it doesn't display my custom nav.
guys i really need help with this, i just have no clue where to start.
regards
Andy.
oh dear gurrrddddd.