Could be useful to many. Need help correcting
Hi to all, could someone tell me what I'm doing wrong here.I'm trying to add a manufacturer menu block
to the existing manufacturer menu.Included code in home.tpl and duplicated code from menu_manfacturer.tpl
into new file menu2_manufaturer.tpl. In first menu I want to list manufacturers from up to 300 (pos order)
and in second menu 300 over.
This is the code I'm trying but have some problems.
{if $manufacturers_menu ne ''}
{capture name=menu}
<form name="form_manuf" method="get" action="manufacturers.php">
<select size="12" name="manufacturerid" onchange="document.form_manuf.submit()">
{section name=mid loop=$manufacturers_menu}
<option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer|truncate:18:"...":true}</option>
{/section}
</select>
</form>
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.menu additional_class="menu-manufacturers"}
{/if}
{foreach from=$manufacturers_menu item=m}
{if $m.order_by lt 300}
{<div class="Manufacturers list"><a href="home.php?cat={$m.manufacturerid}" class="VertMenuItems">{$m.manufacturers}</a></div>
{/if}
{/foreach}
same for "menu2_manufaturer.tpl" but change {if $m.order_by gt 301}
Doing what I have said both menus list the same manufacturers and links to pages don't work.
I'm surely missing something.Any expert coder out there please help.
Cheers
__________________
v4.2.2
|