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)
-   -   add icons netx to category names (https://forum.x-cart.com/showthread.php?t=25919)

zebu 10-18-2006 02:57 PM

add icons netx to category names
 
I am not using fancy categories module.

I would like to add a "button" type image next to each listing in my categories menu - just to Pretty it up a little.

Is this possible and where do I start?

balinor 10-18-2006 05:29 PM

Re: add icons netx to category names
 
customer/categories.tpl

zebu 10-18-2006 07:10 PM

Re: add icons next to category names
 
Thanks so something like
<img src ="Button " height="10" width="10" img src="path to my file" cat={$categories[cat_num].categoryid}

Not sure where to plonk it in the code?

balinor 10-19-2006 02:27 AM

Re: add icons netx to category names
 
You don't need to put anything about the cat in there, just make it a simple image tag:

<img src="{$ImagesDir}/image.jpg" width="10" height="10">

Put it right before this:

<FONT class="CategoriesList">

zebu 10-19-2006 03:58 AM

Re: add icons netx to category names
 
This is great I'm learning very quickly. :)

The image sits real close to the category name. How do I put a space between the button image and the category text?

I appreciate your time.

Zane

balinor 10-19-2006 03:59 AM

Re: add icons netx to category names
 
add a padding value to it:

<img src="{$ImagesDir}/image.jpg" width="10" height="10" style="padding-right: 10px;">

zebu 10-19-2006 04:38 AM

Re: add icons netx to category names
 
Thanks. It doesnt seem to have any effect, this is what I have.

<img src="{$ImagesDir}/menu_ball.gif" width="16" height="16"
style="padding-right: 40px;">

??

ranger82nd 10-19-2006 05:11 AM

Re: add icons netx to category names
 
What if I wanted a different icon for each category?

balinor 10-19-2006 07:46 AM

Re: add icons netx to category names
 
That is an entirely different bit of code I'm afraid :(

ranger82nd 10-19-2006 10:27 AM

Re: add icons netx to category names
 
A little clue?
Code:

{if} {$category=xxxxx} <img src=xxxx> {else}
Would it be something along these lines?


All times are GMT -8. The time now is 04:00 AM.

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