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)
-   -   Changing menu catagories (https://forum.x-cart.com/showthread.php?t=21665)

mfcopier 05-10-2006 02:49 AM

Changing menu catagories
 
How do you change the menu catagories to images instead of txt

Thanks

balinor 05-10-2006 03:57 AM

To the category images or other images?

mfcopier 05-10-2006 06:00 AM

sorry the menu have images not txt

balinor 05-10-2006 06:02 AM

Yes, but WHAT images do you want to show in the menu? The category images that you upload via admin, or other images?

mfcopier 05-10-2006 06:09 AM

well the images can be uploaded to the image folder in skin1 then pulled on my site l want the text say "Epson ink cartridges" put on a plain button.

Thanks

balinor 05-10-2006 06:11 AM

You could just use CSS to put a background image behind the existing menu text...will be a lot easier. Have a look at the way button.tpl is set up.

mfcopier 05-10-2006 06:18 AM

will this put a background behind all the text

balinor 05-10-2006 06:20 AM

No, you can get a default image behind each of the pieces of text, like a blank button.

mfcopier 05-10-2006 06:23 AM

sorry to be thick but l cant make head nor tail of this

{* $Id: button.tpl,v 1.16.2.1 2004/11/01 07:33:15 max Exp $ *}
{if $config.Adaptives.platform eq 'MacPPC' && $config.Adaptives.browser eq 'NN'}{assign var="js_to_href" value="Y"}{/if}
{if $type eq 'input'}{assign var="img_type" value='INPUT type="image"'}{else}{assign var="img_type" value='IMG'}{/if}
{assign var="js_link" value=$href|regex_replace:"/^\s*javascript\s*:/Si":""}
{if $js_link eq $href}{assign var="js_link" value="javascript: self.location='`$href`'"}
{else}{assign var="js_link" value=$href}{if $js_to_href ne 'Y'}{assign var="onclick" value=$href}{assign var="href" value="javascript: void(0);"}{/if}{/if}
{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
<TABLE border="0" cellspacing="0" cellpadding="0" onclick="{$js_link}" style="cursor: pointer;" valign="middle"{if $title ne ''} title="{$title}"{/if}>
<TR><TD><{$img_type} src="{$ImagesDir}/but1.gif" width="7" height="14" border="0"{if $title ne ''} title="{$title}"{/if}></TD>
<TD class="Button" valign="middle" nowrap><FONT class="Button">{$button_title}</FONT></TD>
<TD>[img]{$ImagesDir}/but2.gif[/img]</TD></TR>
</TABLE>
{else}
<FONT class="FormButton">{$button_title} <{$img_type} {include file="buttons/go_image.tpl" full_url='Y'}></FONT>
{/if}

Grant 05-12-2006 06:19 AM

I would be very interested in seeing how this is done also. It seems like such an obvious thing but as i'm learning fast - nothing in x-cart is obvious!


All times are GMT -8. The time now is 02:54 PM.

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