| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#11
|
|||||||
|
|||||||
![]() 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.
__________________
______________ version 4.1.9 Gold |
|||||||
#12
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#13
|
|||||||
|
|||||||
![]() 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......
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
#14
|
|||||||||
|
|||||||||
![]() nope never got it to work.
__________________
xcart 5.1.2 |
|||||||||
#15
|
|||||||||
|
|||||||||
![]() I always like keeping processing in php when possible.
Open home.php FIND: Code:
AFTER ADD: Code:
In your template use: Code:
|
|||||||||
#16
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
#17
|
|||||||
|
|||||||
![]() Could someone please explain in detail why this is so important.
__________________
Xcart 5.1.6 Building New Store Xcart4.6.4 Gold Plus Xcart 4.6.4 Platinum Smart Template, Mail Chimp Upgrade Checkout One (One Page Checkout) Checkout One X-Payments Connector Checkout One Deluxe Tools Call For Price On Sale Module Buy Together Module MAP Price MOD |
|||||||
#18
|
|||||||||
|
|||||||||
![]() Why what in particular is so important?
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|