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

Triangle icon on vertical category menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-09-2009, 02:21 AM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default 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.
__________________
x-cart gold 4.1.9
x-cart gold 4.1.5
www.makeuwell.com.au
www.amberbebe.com
Sydney Australia
Reply With Quote
  #2  
Old 03-17-2009, 12:59 PM
  alec.thomas's Avatar 
alec.thomas alec.thomas is offline
 

Advanced Member
  
Join Date: Mar 2009
Location: Minnesota, USA
Posts: 78
 

Default 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.
__________________
X-Cart Gold v4.2.0 [Linux]
Add-On: X-Magnifier
Altered Cart Add-On: One Page Checkout
Reply With Quote
  #3  
Old 03-23-2009, 02:53 AM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default 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...
__________________
x-cart gold 4.1.9
x-cart gold 4.1.5
www.makeuwell.com.au
www.amberbebe.com
Sydney Australia
Reply With Quote
  #4  
Old 03-23-2009, 03:18 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:47 PM.

   

 
X-Cart forums © 2001-2020