| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Unique text on category template? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I apologize if this has been addressed before, but I couldn't find anything here on the boards...
Let's say I have a category called Fruit. If I wanted to display a message on that page utilizing the category name, I would add "Look at our wonderful selection of {$current_category.category} on the customer/home.tpl. Obviously, this would appear on all categories, whether they were fruit, cars, books etc. Now, if under Fruit I have a sub-category "Apples," the problem I am having is that message is displaying there as well, so the message "Look at our wonderful selection of Apples" would print on the sub-category page..which I don't want. How could I either: 1. Not have this message appear at all on the sub-category's page or 2. Have this line pull the name of the parent category, so it would still say "Fruit" and not "Apples." Am I putting this line on the wrong template to begin with? I'm new to Smarty (obviously), and am confused as hell!! I am currently testing version 4.0.2. Thanks in advance! Rich |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() you should make use of the array that builds the navigation menu.
Code:
That will give you the name of the main root category
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks for the reply...this was one of those things that I figured out about 10 minutes after I posted this (and about 4 hours of banging my head off the desk before that..). I actually did it a bit differently, creating and calling an alternate template (home1.tpl) and php file (home1.php). Works like a charm, though I guess I could have done it in an easier fashion
![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|