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

Replacing catagory text with images?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-26-2002, 02:03 AM
 
egypt13 egypt13 is offline
 

Member
  
Join Date: Sep 2002
Location: Pheonix, AZ
Posts: 23
 

Default Replacing catagory text with images?

the suggestion I was given was to add 1 line in customer/categories.tpl

<tr><td colspan="2" class="TableLeftElements" nowrap>
{if #RootCategories# eq "Y"}
{section name=cat_num loop=$categories}
Add this line>>>[img]../icon.php? categoryid={$categories[cat_num].categoryid}[/img]
<font class=CategoriesList><a href="home.php?cat={ $categories[cat_num].category
id }">{ $categories[cat_num].category|escape }</a></font>

{/section}
{else} {section name=cat_num loop=$subcategories}
------------------------------------------------------------------------
would this work?
where do I go from here? where do I add the images?
__________________
Ian Winscom
BoxedGreens Organic Grocery
http://boxedgreens.com
http://blog.boxedgreens.com

-----------------------------------
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 09-26-2002, 07:57 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

http://forum.x-cart.com/viewtopic.php?t=54

Have a look at the topic above, should help you out.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
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

Code:
{* $Id: categories.tpl,v 1.11 2002/06/20 12:27:32 zorg Exp $ *} <TABLE border=0 cellPadding=5 cellSpacing=0 width=100%> <TR> <TD height=26 width=26 class=MenuTitleLine>[img]../{ #ImagesDir# }/dingbats_categorie.gif[/img]</TD> <TD height=26 valign=center width="80%" class=MenuTitleLine><FONT class=TableLeftTitles>{$lng.lbl_categories}</FONT></TD> </TR> <tr><td colspan="2" class="TableLeftElements" nowrap> <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> <!-- OLD CODE IS COMMENTED OUT HERE {if #RootCategories# eq "Y"} {section name=cat_num loop=$categories} <font class=CategoriesList>{ $categories[cat_num].category|escape }</font> {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category|escape }</font> {/section} {/if} --> </td></tr> </TABLE>
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 01:35 PM.

   

 
X-Cart forums © 2001-2020