| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product.tpl need to know root cat | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() How can i determine the ROOT category of the product i am currently on.
Basically im looking ot see if the product's root cat is "Apparel" then if it is, i want to include a Sizing Chart link for customers. but lets say its, "Motherboards" then dont show the sizing chart link. Any ideas? TIA, Tony |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() look at how the location variable works
something like Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() where can i find more info on Location var?
searching around, no luck. Thanks Shan! |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Found it
{$location[position].1} is the variable. |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Problem.
if i use this code Code:
I get the following output: eq "Riding Gear"} Image appears if i use this code Code:
I get NOTHING to output. what am i doing wrong? |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() {if $location[0].0 eq "Gear"}
blah blha {/if} This works, thanks Shan. |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|