| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Category Name Within Template | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Category Name Within Template
Hello,
Does anybody know the code that I can place within a X-cart template that will display the appropriate category name? I know some templates already have this code that will make the appropriate category name appear on the page, but I can't seem to find it. I would like to add this code to other template pages as well. Thanks in advance.
__________________
X-cart Gold Version 4.0.4 on Unix |
|||||||
#2
|
|||||||
|
|||||||
It depends on where....where would you like to add it?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Hi Balinor,
Thanks for the reply. My cart is customized so that each category has it's own template so that I can change the look of each template. Basically I am making copies of the home.tpl, editing it and renaming the file. I would like to add the category names within these templates. Thanks!
__________________
X-cart Gold Version 4.0.4 on Unix |
|||||||
#4
|
|||||||
|
|||||||
So you are looking for the code for the current/active category?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Yes, that's exactly what I am looking for.
__________________
X-cart Gold Version 4.0.4 on Unix |
|||||||
#6
|
|||||||
|
|||||||
Try:
{$current_category.category}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
Sweet! It worked. Thanks a lot Balinor. I really appreciate your help!
__________________
X-cart Gold Version 4.0.4 on Unix |
|||||||
#8
|
|||||||
|
|||||||
Show main category?
I'd like to do something similar but slightly different. I need to show the main category that the product belongs to. I want to show this right next to the product name in the products.tpl template. Showing the current category wont really work since it would change in the subcategories. Any suggestions would be greatly appreciated. Thanks in advance.
x-cartpro v4.1.1 [unix]
__________________
Jamie |
|||||||
|
|||
X-Cart forums © 2001-2020
|