Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Show Subcategory Description in Category List

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-22-2013, 12:30 PM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Show Subcategory Description in Category List

Hi,

I want to include the sub category descriptions when I view a list of subcategories. For example, I have a category that has 10 subcategories.

But when I view the list of subcategories, the category title and thumbnail shows for each sub category, but the category description does not show even though the categories have a text description.

I found the correct file to add the code (/skin/common_files/customer/main/subcategories_t.tpl), but can't figure out how to get subcategory description to show.

Using $current_category.description does not work; that shows only the current category's description for ALL subcategories.

Thanks

x-cart 4.4.5
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
  #2  
Old 07-23-2013, 05:36 AM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Re: Show Subcategory Description in Category List

I finally figured this one out: add {$subcategory.meta_description} or {$subcategory.description} to include the meta or description in the sub categories.

Note: the php code for categories is in /include/func/func.category.php
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:00 PM.

   

 
X-Cart forums © 2001-2020