![]() |
Subcategory Icon
Hi All.
I am having a hard time figuring this out... I was able to show the Subcategory Icon with this thread... http://forum.x-cart.com/showthread.php?t=3848&page=22&highlight=subcategor ies+icons Subcategory Icon shows on the Category page with bunch of Subcategory icons, but when I click on the specific Subcategory to go to that Subcategory page, then icon dissapears. I added Code:
<img src="{$subcat.icon_url}" alt="" /> at the beginning of the subcategories.tpl , but no luck.. Any help much appreciated.... |
Re: Subcategory Icon
Quote:
Try used this code for subcategories.tpl. Option: {assign var="count_per_row" value=3} (3 - count column) <img src="{$c.icon_url}" width=200> (200px - image width) PHP Code:
|
Re: Subcategory Icon
Yurij, Thanks for your kind reply.
I actually was able to show subcategory icons with 3 columns in the main category page. What I want to do is to place a subcategory icon at the beginning of the page right before the subcategory description. I've been trying to do this for a while, but no luck at all.. |
Re: Subcategory Icon
Quote:
With the flow around icons category or not? If you're comment out 3 lines, you will be displayed the description category under of the icon category. PHP Code:
Ups... I forgot one moment... ;) Open file "include/categories.php" and find next line: PHP Code:
And to replace those lines with this code PHP Code:
|
Re: Subcategory Icon
Yurij,
I really appreciate your kind help. I was able to show the icons. Here is the pic of it. http://sauce-mania.com/00/p1.png Now, how can I do this? This is on the page after you clicking on "Soy Sauce"... http://sauce-mania.com/00/p2.png |
Re: Subcategory Icon
Open file "skin1/customer/main/subcategories.tpl", find next line:
PHP Code:
And to replace those lines with this code PHP Code:
|
Re: Subcategory Icon
Yurij,
YOU ARE DA MAN! Thank you very much! It all worked great!!!!!!!!!!!!!! Thank You! |
Re: Subcategory Icon
That's amazing... I spent all night trying every solution on this board, gave up to try again tonight and the answer was posted while I slept.
I love you 4.1.9 |
Re: Subcategory Icon
I have successfully modified tthe sub cat template to enable icons to appear but they blow out - is there a way to limit the icon size?
Thanks L |
Re: Subcategory Icon - 4.3.1
Hi
I just wanted to let people know that the code posted in #2 of this thread by yurij works fine in 4.3.1 . I added a style class to the table call to add a border and further styling and it was perfect! 3 columns of subcats displayed just how i like it :-) |
All times are GMT -8. The time now is 02:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.