![]() |
Re: root cat
Ashley, I've tried using the root category in my products.tpl and with our flyout categories mod, but no cigar. I ended up creating other templates to get the result that I wanted, but it was far more work. If you find an answer for capturing the root category, please post it.
|
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. |
Re: root cat
Has anybody gotten any of these to work? I've been looking to implement this as well. I tried a few suggestions here but no dice......
|
Re: root cat
nope never got it to work.
|
Re: root cat
I always like keeping processing in php when possible.
Open home.php FIND: Code:
require $xcart_dir."/include/categories.php";AFTER ADD: Code:
// WCM - Get Root Cat (customization)In your template use: Code:
{if $current_category.root_categoryid eq X} |
Re: root cat
Just reviewed the reason behind needing this and our Category Map module be be a solution: http://www.websitecm.com/x-cart-mods/x-cart-seo-category-map.html
|
Re: root cat
Could someone please explain in detail why this is so important.
|
Re: root cat
Why what in particular is so important?
|
| All times are GMT -8. The time now is 07:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.