Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / simple navigation: cpath->categories

simple navigation: cpath->categories

Locked

Views: 977

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Oct 2007, 6:26 PM
#1
warefare avatar

warefare

New Zenner

Join Date:
Oct 2007
Posts:
15
Plugin Contributions:
0

simple navigation: cpath->categories

Hello,

I'm new to zencart and something confuses me why is there no function to **lookup the current categories to display them on product_info_display **

I just want it like here:
http://www.zencart137.jadetrue.com/index.php?main_page=product_info&cPath=1&products_id=1

Home :: Testing (Toplevel) :: Testing2 (Sub)

This is a must have for every shop I'm so confused why it's not in the main code.

I've tried a lot and searched here and there but usually people want to hide
categories or want to display them horizontally O_o

I found out that $cpath displays the category path id's but it's difficult for me to read the first number and then if there is a "_" to start reading again.
Is there a php function (just like ereg or preg_match to test a value) to get the real numbers into a simple variable I can output via ECHO? That would solve that because then it's easy to read out the categories in the CATEGORIES_DESCR table.

Thanks in advance, maybe someone can even come up with a better solution or someone knows how its done at jadetrue.com

18 Oct 2007, 9:07 PM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: simple navigation: cpath->categories

That's what they call the "breadcrumbs". You can turn them on or off easily through the admin of your Zen Cart install. There is no need to create a totally new function for it as it is already built in.

18 Oct 2007, 11:18 PM
#3
warefare avatar

warefare

New Zenner

Join Date:
Oct 2007
Posts:
15
Plugin Contributions:
0

Re: simple navigation: cpath->categories

econcepts:

That's what they call the "breadcrumbs". You can turn them on or off easily through the admin of your Zen Cart install. There is no need to create a totally new function for it as it is already built in.

thanks a lot, that helps :>