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)
-   -   Replace category, manufactures, etc text for images... (https://forum.x-cart.com/showthread.php?t=39528)

tarty00 05-02-2008 10:54 PM

Replace category, manufactures, etc text for images...
 
I have searched high and low through the forum and everything I try to do in version 4.1.9 for changing the text into it's own image, it just won't work.

What I am after is to be able to have an image for the Category, Manufactures, Special, Authentication, Your Cart and Help but as their own image like this:

http://i73.photobucket.com/albums/i210/tarty00/categories.gif

http://i73.photobucket.com/albums/i210/tarty00/manufactures.gif

http://i73.photobucket.com/albums/i210/tarty00/special.gif

etc....

If anyone has the right file to modify and exactly what the code is to be changed to I would be so greatful. I am almost done modifying my store now and between changing the sidebar to images and the bottons to images I will be done. Thanks heaps guys for your help so far and thanks heaps for looking :D

Yurij 05-05-2008 07:15 AM

Re: Replace category, manufactures, etc text for images...
 
1 Attachment(s)
Quote:

Originally Posted by tarty00
I have searched high and low through the forum and everything I try to do in version 4.1.9 for changing the text into it's own image, it just won't work.

What I am after is to be able to have an image for the Category, Manufactures, Special, Authentication, Your Cart and Help but as their own image like this:


etc....

If anyone has the right file to modify and exactly what the code is to be changed to I would be so greatful. I am almost done modifying my store now and between changing the sidebar to images and the bottons to images I will be done. Thanks heaps guys for your help so far and thanks heaps for looking :D


1. Back up your site.
2. Upload all images in images dir.

2. Change file skin1/menu.tpl
PHP Code:

<table cellspacing="1" width="100%" class="VertMenuBorder">
<
tr>
<
td class="VertMenuTitle">
<
table cellspacing="0" cellpadding="0" width="100%"><tr>
{if 
$images_src ne ""}
<
td>{if $link_href}<a href="{$link_href}">{/if}<img src="{$ImagesDir}/{$images_src}"  alt="{$menu_title|escape}/>{if $link_href}</a>{/if}</td>
{else}
<
td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}/>{$link_end}</td>
<
td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
{/if}
</
tr></table>
</
td>
</
tr>
<
tr
<
td class="VertMenuBox">
<
table cellpadding="{$cellpadding|default:"5"}cellspacing="0" width="100%">
<
tr><td>{$menu_content}<br /></td></tr>
</
table>
</
td></tr>
</
table


3. Change all templates menu, where the image will be used instead of names menu.

Exm. for "skin1/customer/categories.tpl":

original:
PHP Code:

..........
{ include 
file="menu.tpl"  dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding


After adding one parameter (images_src="categories.gif", where categories.gif - The file name with a name images file for this category):
PHP Code:

{ include file="menu.tpl" images_src="categories.gif" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding



PS. And so for all "menu" by analogy... :)

Result:

Attachment 929

tarty00 05-05-2008 07:26 PM

Re: Replace category, manufactures, etc text for images...
 
Yurij you are a legend!! Thank you so so VERY much. I have it all done now and this worked a total treat!

Check it out HERE if you would like to see my end result. Again thank you SO very much Mate!! :D :D


All times are GMT -8. The time now is 06:52 PM.

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