Thread: root cat
View Single Post
  #12  
Old 11-25-2009, 05:33 AM
  TBone's Avatar 
TBone TBone is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 38
 

Default Re: root cat

Try this:

{$current_category.categoryid_path|regex_replace:" /\/[0-9\/]*/":""}

this fetches the root category from the path. It finds the first "/" and replaces everything after it with nothing leaving the current root cat id.

Hope this helps.
__________________
_____________________________________________
www.webcreatives.nl | X-Cart Shops
X-Cart Versions 4.1.x | 4.2.x | 4.3.x | 4.4.x
Parallelweg 124-14, 1948 NN BEVERWIJK
The Netherlands
Reply With Quote