Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / products subcategory not showing when product info page is navigated to from product

products subcategory not showing when product info page is navigated to from product

Started by phillycheese123 on 25 Dec 2012, 11:53 PM · Views: 834

Results 1 to 2 of 2
25 Dec 2012, 11:53 PM
#1
phillycheese123 avatar

phillycheese123

New Zenner

Join Date:
Dec 2011
Posts:
11
Plugin Contributions:
0

Post #1 by phillycheese123

Right now, if I navigate to a product info page from the "products_all" page ....the subcategories which the product is in do not show in the categories sidebox on the left of the page.

http://www.shopbabby.com/index.php?main_page=product_info&products_id=193

now if i instead navigateto the product info page by clicking through the categories (i.e. click shirts, then collared, then click a shirt) the products subcategories can be seen, in the categories sidebox.

http://www.shopbabby.com/index.php?main_page=product_info&cPath=65_66&products_id=193

Does anyone have any suggestions as to how to include the cpath when navigating to a product_info page from the products_all page?

Thanks and merry christmas
:rant::D

26 Dec 2012, 3:32 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

If you navigate from the all products listing, there is no information available on which subcategory would be appropriate, if you have linked products that appear in more than one category. Every product has a "master category id" whether it is linked or not, so you could modify the breadcrumb code to use the master category if there is no cPath active.

Getting the categories sidebox (and therefore the URL) to show a relevant cPath would require more modifications, likely to the products_all files to generate an appropriate cPath in the listing link.