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

How to replace the Vertical Menu Titles with Images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 09-29-2008, 04:03 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default How to replace the Vertical Menu Titles with Images

I have pulled all the information I could find on these forums and have come up with this quick little tutorial for anyone else having trouble replacing the Vertical Menu Titles with images.


How to replace the Vertical Menu Titles with Images

1: Change all of the coding in skin1/menu.tpl to the following & save:

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>

2. Upload all images into the skin1/images directory.

3. In your skin1/customer/categories.tpl file find the following code:

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

And replace it with:

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}

All your doing is adding images_src="YOUR-IMAGE.gif" to each of the .tpl files but of course naming them in their corresponding names.


Now the .tpl files I edited are as follows and most of yours will be the same but you may have a couple more in there that I don't currently have on my store but all I did was open it in webmaster mode and found out which files to change in the debugging pop up thing that comes up.

customer/categories.tpl (Categories)
customer/special.tpl (Other)
customer/menu_cart.tpl (Your Cart)
modules/manufactures/menu_manufactures.tpl (Designers)
help.tpl (Help)
auth.tpl (Login)
authbox.tpl (Logged In)


Hope this helps someone else out
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #2  
Old 09-30-2008, 02:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: How to replace the Vertical Menu Titles with Images

Moving to Custom Mods
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-30-2008, 06:23 AM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default Re: How to replace the Vertical Menu Titles with Images

I thought of that as soon as I hit send. LOL. Thanks heaps Mate
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #4  
Old 10-05-2008, 05:21 AM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default Re: How to replace the Vertical Menu Titles with Images

sounds like an excellent mod gonna try this tomorrow!!!
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #5  
Old 10-05-2008, 07:50 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default Re: How to replace the Vertical Menu Titles with Images

It's so easy to do hey. Good luck with it
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #6  
Old 12-20-2008, 11:52 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default Re: How to replace the Vertical Menu Titles with Images

Thank you for this code.
__________________
xCart 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 06:25 AM.

   

 
X-Cart forums © 2001-2020