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

Making a category list using the category icons.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-18-2002, 11:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default 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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #2  
Old 09-26-2002, 09:09 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Usage example can be found here:
http://forum.x-cart.com/viewtopic.php?p=517#517
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-29-2003, 10:55 AM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default

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
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #4  
Old 04-29-2003, 02:00 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

No, this would show an image with the category name as an alt tag for that image.
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:37 AM.

   

 
X-Cart forums © 2001-2020