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)
-   -   Triangle icon on vertical category menu (https://forum.x-cart.com/showthread.php?t=46123)

ladybird 03-09-2009 02:21 AM

Triangle icon on vertical category menu
 
Hi all,

just wondered if anyone could help me ID the piece of code in the category.tpl that puts the little triangles bullets infront of the items.

I have successfully created a look-alike manufacturers list on the right vertical menu (so I have categories of product on the left and manufacturers on the right.

I have managed to make the items in manufacturers bold. Now I just need to add the little triangle bullets infront of each one to make it match.

Any advice much appreciated.

Ladybird.

alec.thomas 03-17-2009 12:59 PM

Re: Triangle icon on vertical category menu
 
yep, the code that you are looking for is here:
modules/Manufacturers/menu_manufacturers.tpl

after you are in there, to add the triangle icon in front of the manufacturers all you would need to do is change this code

{if $show_other_manufacturers}
<li><a href="manufacturers.php">{$lng.lbl_other_manufactu rers}</a></li>
{/if}

to

{if $show_other_manufacturers}
<li><img src="images/triangle.gif"><a href="manufacturers.php">{$lng.lbl_other_manufactu rers}</a></li>
{/if}

just make sure you change my line of code in red : <img src="images/triangle.gif"> to wherever your triangle image is located at.

ladybird 03-23-2009 02:53 AM

Re: Triangle icon on vertical category menu
 
HI thanks for that,

I have opened the template and it looks like this ...

{* $Id: menu_manufacturers.tpl,v 1.5 2005/11/17 06:55:47 max Exp $ *}
<strong>

{if $manufacturers_menu ne ''}
{capture name=menu}
{section name=mid loop=$manufacturers_menu}

<a href="manufacturers.php?manufacturerid={$manufactu rers_menu[mid].manufacturerid}" class="VertMenuItems">{$manufacturers_menu[mid].manufacturer}</a>
<br />
{/section}

{/capture}
{include file="menu_border.tpl" dingbats="dingbats_categorie.gif" " menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu}
<br />
</strong>

</div>

{/if}

any suggestions because it doesn't have the

{if $show_other_manufacturers}
<li><a href="manufacturers.php">{$lng.lbl_other_manufactu rers}</a></li>
{/if}


to modify...

Victor D 03-23-2009 03:18 AM

Re: Triangle icon on vertical category menu
 
try to replace
Code:

{section name=mid loop=$manufacturers_menu}
<a href="manufacturers.php?manufacturerid={$manufactu rers_menu[mid].manufacturerid}" class="VertMenuItems">{$manufacturers_menu[mid].manufacturer}</a>
<br />
{/section}



with
Code:

{section name=mid loop=$manufacturers_menu}
<img src="{$ImagesDir}/triangle.gif" align="left" alt="" /><a href="manufacturers.php?manufacturerid={$manufacturers_menu[mid].manufacturerid}" class="VertMenuItems">{$manufacturers_menu[mid].manufacturer}</a>
<br />
{/section}



All times are GMT -8. The time now is 08:47 AM.

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