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)
-   -   Making a category list using the category icons. (https://forum.x-cart.com/showthread.php?t=22)

B00MER 09-18-2002 11:04 PM

Making a category list using the category icons.
 
This was coded in 2.3.4, unless the variable names have changed this should work in 3.1.3 I hope :?

Code:

<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0><TR>
{section name=cat_num loop=$categories}
{if $smarty.section.cat_num.index is div by 3}
</TR><TR>
{/if}
<TD>[img]../icon.php?categoryid={$categories[cat_num].categoryid}[/img]</TD>
{/section}
</TR></TABLE>


Change the "is div" by 3 to change up the columns.

B00MER 09-26-2002 09:09 AM

Usage example can be found here:
:arrow: http://forum.x-cart.com/viewtopic.php?p=517#517

Tye 04-29-2003 10:55 AM

So

Am I thinking that this would then list all the categories as text with an icon for each category to the left??????

I hope so, please let me know

Hey - I got a bike - awesome

funkydunk 04-29-2003 02:00 PM

No, this would show an image with the category name as an alt tag for that image.


All times are GMT -8. The time now is 09:23 PM.

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