| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Different set of tabs based on root category selected | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I need an {if} statement that shows my subheads (or tabs)
based on the root, or parent category selected and continues to display them all the way to checkout unless another root category is selected. I looked at the {if} statement post by Instinctual http://forum.x-cart.com/viewtopic.php?t=12234 and it was very helpful but it didn't answer my question. I have it working for when the root category is clicked, but it disappears as soon as a sub category is selected. The following code is in my head.tpl Code:
I need a code that says for as long as the patent or root ... or until another parent or root category ... is selected Thank you!
__________________
X-Cart Gold Version 4.0.18 Add-on: X-RMA Add-on: X-AOM |
|||||||
#2
|
|||||||
|
|||||||
![]() You need to use something like this:
{if $location[1].0 eq "Category Name"} Replace Category Name with the actual category name. It needs to be exact, so watch the punctuation.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thank you for your reply.
I now have managed to keep my subheads/tabs up while browsing products etc... (thanks to Fernando: http://forum.x-cart.com/viewtopic.php?t=12058) but they disappear as soon as I click on view cart or checkout ... because there is no specific category selected! Would the {if $location[1].0 eq "Category Name"} resolve that?
__________________
X-Cart Gold Version 4.0.18 Add-on: X-RMA Add-on: X-AOM |
|||||||
#4
|
|||||||
|
|||||||
![]() No, because the cart doesn't have any 'current' category information.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() hmmm!!!
here is my srore if you want to have a look at it. http://216.174.99.9/~mystore/ (I am still working on the left side categories list) thanks again
__________________
X-Cart Gold Version 4.0.18 Add-on: X-RMA Add-on: X-AOM |
|||||||
#6
|
|||||||
|
|||||||
![]() How do I actually add anything to the cart? Very confusing...
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() I know!! I'm sorry.
You can click on shop online / 12th street / tops / view product details
__________________
X-Cart Gold Version 4.0.18 Add-on: X-RMA Add-on: X-AOM |
|||||||
|
|||
X-Cart forums © 2001-2020
|