View Single Post
  #67  
Old 11-22-2011, 08:22 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Quote:
Originally Posted by xtech
Hi Cankus the above code set is working but there is a problem see the attachment below-http://www.thefashiontree.com/brandlogo.jpg

It should be Logo only not Manufacturer is not specified that is at least 4 or five logo Vertically and other on more options.

How to achieve that??

Part of the problem is he says to replace "menu_manufacturers.tpl" with customer_manufacturers_list.tpl. If you are trying to get logos to display vertically in the menu then they should not be in a table but in a list.

I have my manufacturers list (the one not on the menu) with logos 4 across in columns. Here is my customer_manufacturers_list.tpl for 4.4.4.
Code:
{* $Id: customer_manufacturers_list.tpl,v 1.2 2010/06/21 13:19:49 joy Exp $ vim: set ts=2 sw=2 sts=2 et: Modified to display icons in columns *} <h1>{$lng.lbl_manufacturers}</h1> {capture name=dialog} {include file="customer/main/navigation.tpl"} {* Modified to display icons in columns <ul class="manufacturers-list list-item"> {foreach from=$manufacturers item=v} <li><a href="manufacturers.php?manufacturerid={$v.manufacturerid|amp}">{$v.manufacturer|escape}</a></li> {/foreach} </ul> *} <ul class="manufacturers-list list-item"> {assign var="col" value="0"} {foreach from=$manufacturers item=v} {if $col == 4}{* Adjust the number of columns *} </ul><ul class="manufacturers-list list-item">{assign var="col" value="0"} {/if} <li><a href="manufacturers.php?manufacturerid={$v.manufacturerid|amp}"> <img src="{$xcart_web_dir}/image.php?id={$v.manufacturerid|amp}&type=M" alt="/"{if $manufacturer.image_x} width="{$manufacturer.image_x}"{/if}{if $manufacturer.image_y} height="{$manufacturer.image_y}"{/if} /> <br /> {$v.manufacturer|escape} </a><br /></li> {assign var="col" value="`$col+1`"} {/foreach} </ul> {include file="customer/main/navigation.tpl"} {/capture} {include file="customer/dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog noborder=true}

Pay attention to the part that begins "<img src="{$xcart_web_dir}.." as that is the routine you want to incorporate into menu_manufacturers.tpl. If we just put it as is into menu_manufacturers.tpl then we should get a list of all of the manufacturers. To do this, in menu_manufacturers.tpl try replacing
Code:
{foreach from=$manufacturers_menu item=m} <li><a href="manufacturers.php?manufacturerid={$m.manufacturerid}">{$m.manufacturer|amp}</a></li> {/foreach}
with
Code:
{foreach from=$manufacturers_menu item=m} <li><a href="manufacturers.php?manufacturerid={$m.manufacturerid}">{$m.manufacturer|amp}<br /> <img src="{$xcart_web_dir}/image.php?id={$m.manufacturerid|amp}&type=M" alt="/"{if $manufacturer.image_x} width="{$manufacturer.image_x}"{/if}{if $manufacturer.image_y} height="{$manufacturer.image_y}"{/if} /> {$m.manufacturer|escape}</a> </li> {/foreach}
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote