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

putting small gif to the left of each category listing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2004, 08:00 PM
 
sherwood sherwood is offline
 

Member
  
Join Date: Apr 2004
Posts: 16
 

Default putting small gif to the left of each category listing

Hi,

I have a small flower gif that I would like to place at the left of each link in the categories box. Does anyone know how and where I would go about doing this once I have the picture uploaded?????

Thank you!
Reply With Quote
  #2  
Old 05-17-2004, 04:55 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

I haven't tested this so I'm not 100% sure, but go to categories.tpl (under skin1/customer)

Insert the image infront of
Quote:
<font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>


and
Quote:
<font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font>

Do the 2nd one only if you want it to show up beside sub categories too.

I'd probably put the image in skin1/images and reference it like
[img]{$ImagesDir}/your_image.gif[/img]

HTH

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #3  
Old 05-17-2004, 03:03 PM
 
sherwood sherwood is offline
 

Member
  
Join Date: Apr 2004
Posts: 16
 

Default worked great

The code for the categories worked great! Thank you very much! The code for the subcategories is not working but I am still playing around with it an will let you know.
Reply With Quote
  #4  
Old 05-17-2004, 03:37 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

OH I think I know why about the subcategories. I think that's for when you have it checked to show sub categories instead of the "root" categories in the list on the left.

I believe you can add icons for the sub categories directly in the web admin interface when editing the categories. Try that, if it doesn't work then you'd need to edit:
skin1/customer/main/subcategories.tpl

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
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 10:30 AM.

   

 
X-Cart forums © 2001-2020