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

Subcategory Display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-07-2012, 12:14 PM
 
steakbbq steakbbq is offline
 

Member
  
Join Date: Oct 2011
Posts: 12
 

Default Subcategory Display

I need to change the default display of subcategories to something more like http://www.coronacigar.com/products/rocky-patel-vintage-1999-cigars.html

I havent even been able to find where the file is located that displays the subcategories. There is no codex like wordpress has so it is very hard to learn how to customize x-cart.

Can you guys give me any pointers?

I did find a .tpl reference but it was for an older version of xcart. It said there should be a subcategories.tpl in the customer folder of the theme but i could not find it. thanks.
__________________
Xcart 4.4.4 GOLD
No addons.
Reply With Quote
  #2  
Old 02-07-2012, 12:20 PM
 
steakbbq steakbbq is offline
 

Member
  
Join Date: Oct 2011
Posts: 12
 

Default Re: Subcategory Display

Also is there a way to give a subcategory an image?
__________________
Xcart 4.4.4 GOLD
No addons.
Reply With Quote
  #3  
Old 02-07-2012, 01:34 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Subcategory Display

Subcategories are categories so you can assign them images and other info in admin/categories.
The template file for the categories listing is skin/your_skin/customer/main/subcategories.tpl (_t.tpl and _list.tpl). If this files do not exists in the skin directory you are using then you will find them in common_files
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 02-07-2012, 04:31 PM
 
steakbbq steakbbq is offline
 

Member
  
Join Date: Oct 2011
Posts: 12
 

Default Re: Subcategory Display

Thank you for your reply. Is there anywhere that documents how to do stuff in xcart?

I dont understand why but I set an image for the subcategorys and it doesnt show the subcategory image.

I tried using

<img src="{$subcat.icon_url}" alt="" /> but no luck.
__________________
Xcart 4.4.4 GOLD
No addons.
Reply With Quote
  #5  
Old 02-07-2012, 05:24 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Subcategory Display

Are you sure it's icon_url and not something else like image_url ?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 10:35 AM.

   

 
X-Cart forums © 2001-2020