| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Subcategories Text and Images | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
Version 4.1.5 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.5 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() As I said, the variables are right there in the template you are looking at:
Description: {$current_category.description} Icon: {$current_category.icon_url}
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.5 |
|||||||
#6
|
|||||||
|
|||||||
![]() 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}
__________________
Version 4.1.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|