![]() |
Subcategories Text and Images
I am trying to get the images and text that I entered for my subcategories to show up when viewing the parent category.
See: http://www.greenglass.com/store/home.php?cat=1 I know I need to alter /customer/main/subcategories.tpl but I don't know what the names of the variables are for the subcategory images and text. Xcart 4.1.7 |
Re: Subcategories Text and Images
If you are referring to the category icon and category description - the variables for these are in the template already. Find them, then copy them so that they are in the part of the template that shows for the parent category.
|
Re: Subcategories Text and Images
Paulodman, I haven't been able to find the variables for those in the template. Do you happen to know which file they are located in?
I was able to guess my way to $subcat.icon_url because the parent category uses the variable .icon_url. I still need to know what to put for the description though. Thanks. |
Re: Subcategories Text and Images
As I said, the variables are right there in the template you are looking at:
Description: {$current_category.description} Icon: {$current_category.icon_url} |
Re: Subcategories Text and Images
Thanks Pauldodman, I must be special ed or something... I've been trying $subcat.description and it hasn't been working.
I'll just fiddle with it some more, I must be doing something wrong here. |
Re: Subcategories Text and Images
Pauldodman, I've played with the setup more and have verified that description does not work for the subcategory {$subcat.description}.
The loop that I am trying to use this within is: {foreach from=$subcategories item=subcat} {$subcat.description} {/foreach} |
All times are GMT -8. The time now is 01:23 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.