| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Multiple Category Menus - is this possible | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
X-Cart version 4.1.11 X-Cart directory/home/wwwswc/public_html PHP 5.2.6 GD bundled (2.0.34 compatible) MySQL server5.0.67-community MySQL client5.0.67 Web server Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 Operation system Linux Perl 5.008008 Details >>XML parser (expat)found |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks Steve for your quick response. Please can you bear with me for a bit longer..
![]() 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"> <a href="{$speed_bar[sb].link}" class="TabLink">{$speed_bar[sb].title}</a> </td> <td valign="top"><img src="{$ImagesDir}/custom/top_border.gif" width="1" height="12" alt="" /></td> {/if} {/section} <td valign="top" width="43"> </td> </tr> </table> </td> </tr> {/if} </table> {/if} Hoping to hear from you soon. Natalie
__________________
X-Cart version 4.1.11 X-Cart directory/home/wwwswc/public_html PHP 5.2.6 GD bundled (2.0.34 compatible) MySQL server5.0.67-community MySQL client5.0.67 Web server Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 Operation system Linux Perl 5.008008 Details >>XML parser (expat)found |
|||||||
#4
|
|||||||||
|
|||||||||
![]() email sent
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|