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

Crystal blue template - menu boxes - categories.tpl 4.0.18

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-09-2006, 06:03 AM
 
gobligoo gobligoo is offline
 

Member
  
Join Date: Sep 2005
Posts: 26
 

Default Crystal blue template - menu boxes - categories.tpl 4.0.18

I have searched and searched many hours and i found lot of suggestions on how to break up the categorie menu in several menues, but no one works for my cart and categories.tpl.
I dont make this to work. Please look at this url for explaination http://home.broadpark.no/~sihans/x-cart/haarpleie.gif

All the categories has order.by 200> exept REDKEN at the bottom. it has order.by 310

the code is like this:

{if $categories[cat_num].order_by eq 200}

--------------------{* NOTE: CHANGE THE LINES TO BE WHAT EVER YOU WANT TO DIVIDE THE CATEGORIES *}
{/if}
{if $categories[cat_num].order_by eq 300}

--------------------{* NOTE: CHANGE THE LINES TO BE WHAT EVER YOU WANT TO DIVIDE THE CATEGORIES *}
{/if}

I have also tried this:

{if $categories[cat_num].order_by eq 200 || $categories[cat_num].order_by eq 300}

--------------------{* NOTE: CHANGE THE LINES TO BE WHAT EVER YOU WANT TO DIVIDE THE CATEGORIES *}
{/if}


Any suggestion?
My code looks like this:
Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $js_enabled} {include file="customer/main/swap_categories_js.tpl"} {/if} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories_menu} {if $categories[cat_num].order_by eq 200} --------------------{* NOTE: CHANGE THE LINES TO BE WHAT EVER YOU WANT TO DIVIDE THE CATEGORIES *} {/if} {if $categories[cat_num].order_by eq 300} --------------------{* NOTE: CHANGE THE LINES TO BE WHAT EVER YOU WANT TO DIVIDE THE CATEGORIES *} {/if} <TR style="CURSOR: pointer;" class="MenuItemOff" {if $js_enabled}onMouseOver="ShowMenyItem(this,'On'); MM_swapImage('cat_img{$categories_menu[cat_num].categoryid}','','{if $full_url}{$http_host}{$ImagesDir|replace:"..":""}{else}{$ImagesDir}{/if}/custom/cat_itemon{cycle name='on_images' values="8,1,2,3,4,5,6,7"}.gif',1)" onMouseOut="ShowMenyItem(this,'Off'); MM_swapImgRestore()"{/if}> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD height="17">[img]{$ImagesDir}/custom/cat_item{cycle values=[/img]{$categories_menu[cat_num].category}</TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {if not $smarty.section.cat_num.last} <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD class="VertMenuLine">[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {/if} {/section} {else} {section name=cat_num loop=$subcategories} <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD height="17">[img]{$ImagesDir}/custom/cat_item{cycle values=[/img]{$subcategories[cat_num].category} </TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {if not $smarty.section.cat_num.last} <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD class="VertMenuLine">[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {/if} {/section} {/if} </TABLE> {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu menu_style="categories"}


Please anyone who can sort this out for me


Regards,

gobligoo

X-cart ver. 4.0.18
__________________
X-cart 4.0.19 (Unix)
--==::wicked::==--
Reply With Quote
  #2  
Old 03-09-2006, 08:47 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

please read the notes on where you are posting.

finished mods only in the custom mods forum

post moved
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 07:46 PM.

   

 
X-Cart forums © 2001-2020