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

Subcategories Text and Images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-30-2007, 08:35 AM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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
__________________
Version 4.1.5
Reply With Quote
  #2  
Old 04-30-2007, 08:50 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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.
__________________
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.
Reply With Quote
  #3  
Old 04-30-2007, 08:57 AM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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.
__________________
Version 4.1.5
Reply With Quote
  #4  
Old 04-30-2007, 09:10 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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}
__________________
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.
Reply With Quote
  #5  
Old 04-30-2007, 09:12 AM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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.
__________________
Version 4.1.5
Reply With Quote
  #6  
Old 04-30-2007, 09:25 AM
 
Skistapr Skistapr is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 9
 

Default 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}
__________________
Version 4.1.5
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 02:49 PM.

   

 
X-Cart forums © 2001-2020