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)
-   -   Multiple Category Menus - is this possible (https://forum.x-cart.com/showthread.php?t=50235)

nataliem 10-16-2009 04:34 PM

Multiple Category Menus - is this possible
 
Hi, I am wanting to have two different category menus on my site www.saddleworldcanberra.com.au. At the moment, we are using fancy categories and they are listed on the left hand side and also as a horizontal menu bar. Both show the same categories. Is it possible to have the horizontal menu bar working from a different set of categories that dont' show up on the left hand side menu bar? I'm not sure if I'm making myself clear, but we are wanting to keep the existing categories down the left hand side, but new horizontal buttons linking to each equestrian discipline, eg dressage, showjumping, eventing, endurance etc etc. These buttons would then link to the relevant products. Any help would be greatly appreciated.

cflsystems 10-16-2009 06:37 PM

Re: Multiple Category Menus - is this possible
 
Yes it is possible. You can setup the position of the second set of categories lets say above 1000 and then an if statement that shows left side categories below 1000 and horizontal above 1000
It will be something like this

for left side
{foreach from=$categories_menu_list item=c}
{if $c.pos lt 1000}{$c.category}{/if}
{/foreach}

then for the horizontal menu
{foreach from=$categories_menu_list item=c}
{if $c.pos gt 1000}{$c.category}{/if}
{/foreach}

not sure on top of my head rightnow if it is pos or position

nataliem 10-18-2009 08:38 PM

Re: Multiple Category Menus - is this possible
 
Thanks Steve for your quick response. Please can you bear with me for a bit longer..:D

Am I correct in that the two files that I need to add this if statement to are top_menu.tpl (horizontal)and menu.tpl (vertical)? I have copies of the files below. Where abouts specifically within those files should I place the if statements? If I'm totally on the wrong track, would you be able to make the changes for me to the code for a service fee? I would also be looking to get rid of the more drop down box and replace that with a graphic/text which states Browse By Category. I could supply you with the graphic. I can be contacted direct here to discuss pricing etc.

menu.tpl

{* $Id: menu.tpl,v 1.3 2006/01/12 15:04:42 max Exp $ *}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="VertMenuTitleBox">
<table cellpadding="0" cellspacing="0" width="100%" class="MenuTitleBg{$menu_position}">
<tr>
<td><img src="{$ImagesDir}/spacer.gif" width="19" height="24" alt="" /></td>
<td class="VertMenuTitle" width="100%">
{if $link_href}
<a href="{$link_href}" class="VertMenuTitle">{$menu_title}</a>
{else}
<font class="VertMenuTitle">{$menu_title}</font>
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" class="VertMenuBox">
<table cellpadding="14" cellspacing="0" width="100%" class="VertMenuBorder{$menu_position}">
<tr>
<td>{$menu_content}<br /></td>
</tr>
</table>
</td>
</tr>
{if $bottom_border eq "Y"}
<tr>
<td class="VertMenuBorder"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
<tr>
<td class="MainArea"><img src="{$ImagesDir}/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
{/if}
</table>

top_menu.tpl

{if $printable ne ''}
{include file="customer/top_menu_printable.tpl"}
{else}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1"><img src="{$ImagesDir}/spacer.gif" width="1" height="3" alt="" /></td>
</tr>
{if $speed_bar}
<tr>
<td valign="top" align="right">
<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><img src="{$ImagesDir}/custom/top_border.gif" width="1" height="12" alt="" /></td>
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<td height="20" nowrap="nowrap">&nbsp;&nbsp;<a href="{$speed_bar[sb].link}" class="TabLink">{$speed_bar[sb].title}</a>&nbsp;&nbsp;</td>
<td valign="top"><img src="{$ImagesDir}/custom/top_border.gif" width="1" height="12" alt="" /></td>
{/if}
{/section}
<td valign="top" width="43">&nbsp;</td>
</tr>
</table>
</td>
</tr>
{/if}
</table>
{/if}

Hoping to hear from you soon.

Natalie

cflsystems 10-19-2009 05:01 AM

Re: Multiple Category Menus - is this possible
 
email sent


All times are GMT -8. The time now is 08:37 PM.

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