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)
-   -   Subcategory Display (https://forum.x-cart.com/showthread.php?t=62575)

steakbbq 02-07-2012 12:14 PM

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.

steakbbq 02-07-2012 12:20 PM

Re: Subcategory Display
 
Also is there a way to give a subcategory an image?

cflsystems 02-07-2012 01:34 PM

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

steakbbq 02-07-2012 04:31 PM

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.

cflsystems 02-07-2012 05:24 PM

Re: Subcategory Display
 
Are you sure it's icon_url and not something else like image_url ?


All times are GMT -8. The time now is 04:47 PM.

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