| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Variable for current category?? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I would like to color my navigation tabs based on the category that the user is currently in. Seems like it should be simple enough.
For the life of me I can not find out what variable might contain the integer id of the current root category the user is in. Looking at code in the forums, I thought perhaps $cat would be the trick, but that always renders 0 for me. I'm trying to do this from within /customer/top_menu.tpl Can anyone help?? UPDATE: Hmm. I still need to test, but I think the problem is that the speedbar doesn't navigate between categories, it's navigating between pages - so I was looking for the wrong data. Let me try again.
__________________
-- JP |
|||||||
#2
|
|||||||
|
|||||||
![]() for STATIC EMBEDDED pages, you can try:
{if $main eq "pages" and $page_data.pageid eq "X"} X= the actual page ID from the admin TO VIEW the variables for any page: http://forum.x-cart.com/showthread.php?p=59611#post59611
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
![]() PS -- welcome to xcart... please read the forum FAQ -- make sure you post your exact version of xcart in your forum signature.
--Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|