X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Show Subcategory Description in Category List (https://forum.x-cart.com/showthread.php?t=67412)

taponitrof 07-22-2013 12:30 PM

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

taponitrof 07-23-2013 05:36 AM

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


All times are GMT -8. The time now is 08:59 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.