| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Link to parent/root cat | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Link to parent/root cat
do you mean $current_category
Seem like you are looking for the cat that the product belongs to?
__________________
xcart 5.1.2 |
|||||||||
#12
|
|||||||
|
|||||||
Re: Link to parent/root cat
the way that i have it set up is
main category > sub category > product the product is listed only in the sub category, so $product.categoryid returns the sub category i'm looking to return the main category thanks!
__________________
Version 4.3.2 |
|||||||
#13
|
|||||||||
|
|||||||||
Re: Link to parent/root cat
{$product.current_category.categoryid_path|regex_r eplace:" /\/[0-9\/]*/":""}
thry this will leave the root cat for any cat or sub cat
__________________
xcart 5.1.2 |
|||||||||
#14
|
|||||||
|
|||||||
Re: Link to parent/root cat
i'm not getting that to show up.
it seems like the only category related variables within {$product} is categoryid thanks, jenny
__________________
Version 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|