| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Getting subcategory descriptions to display | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() For 4.3.2 how do I get the subcategory descriptions to display as on this page:
http://www.berryhilldrip.com/CategoryProductList.jsp?cat=Garden+and+Home+Irriga tion I found an answer here on the forums to this question, but it seems to be for a different version and was calling for different files than I seem to be using. I've found skin1/customer/main/subcategories_t.tpl that seems to be controlling the page displaying a category and all its subcategories. Here's the section of code I need to edit: Code:
__________________
x-cart 4.3.2 Easy Variant View |
|||||||
#2
|
|||||||||
|
|||||||||
![]() subcategories_t.tpl doesn't have description included by default, you have to call it yourself. subcategories_list.tpl has it.
{$subcategory.descr} or {$subcategory.description}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks so much for responding. I had my settings set to display the subcategories in column view, which calls in the subcategories_t.tpl. If that's not selected, then the subcategories_list.tpl is called in, which is what I wanted, so thanks for causing me to notice that.
But, my subcategories_list.tpl doesn't have that {$subcategory.descr} or {$subcategory.description} code, and adding it, nothing happens. I tried a few more variations, {$subcat.descr} and {$subcategory.descr} and nothing appeared. The complete line I'm adding is: Code:
and in source view I can see the Code:
added, but the variable part is empty, so it's not making sense of that. Is there somewhere that variable has to be defined?
__________________
x-cart 4.3.2 Easy Variant View |
|||||||
#4
|
|||||||||
|
|||||||||
![]() My bad, it is not included by default. It may even not be included in subcat array. If that's the case you will have to edit include/categories.php to include description in the categories arrays so you can call it in the template
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|