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)
-   -   Crystal blue template - menu boxes - categories.tpl 4.0.18 (https://forum.x-cart.com/showthread.php?t=20410)

gobligoo 03-09-2006 06:03 AM

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

shan 03-09-2006 08:47 AM

please read the notes on where you are posting.

finished mods only in the custom mods forum

post moved


All times are GMT -8. The time now is 05:38 PM.

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