| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Show description in subcatergories.tpl (help with code) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I want to show the description of the subcategories in the subcategories.tpl under the name of the category. I tried this {* <a href="home.php?cat={ $subcat.categoryid}">- {$subcat.category.description|strip_tags|indent:5| truncate:400:"...":true}</a></font> *} but it doesnt seem to be working. Can anyone look at this code and give me some ideas. Thanks
__________________
4.1.8 Xcart |
|||||||
#2
|
|||||||
|
|||||||
![]() Anyone help?
__________________
4.1.8 Xcart |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Try {$subcat.description}
|
|||||||||
#4
|
|||||||
|
|||||||
![]() you need to edit categories.php because only the current category (the category id that is in your address bar) will get its description passed on to the template
you will have to pass the categories' ids into the function func_get_category_data() or write your own function that does a query to only grab descriptions |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|