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

Display manufacturer logo instead on name on site

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-02-2010, 08:54 AM
 
Snowrev Snowrev is offline
 

Member
  
Join Date: Oct 2010
Posts: 24
 

Default Display manufacturer logo instead on name on site

I want to display the manufacturers logo instead of the name on the left bar of light and lucid 3 column 4.4.1

Anyone know how to do this?
__________________
John Centi
SNOWREV
SUBURBAN BLEND
X Cart 4.4.1
Reply With Quote
  #2  
Old 11-04-2010, 06:54 AM
 
Snowrev Snowrev is offline
 

Member
  
Join Date: Oct 2010
Posts: 24
 

Default Re: Display manufacturer logo instead on name on site

I was able to get logos to appear in the place of the manufacturer name by using this code in 4.4.1 but the problem is that this code is only equal to one manufacturer and will only display one logo while on that manufacturers page "same logo" for all manufacturers and I don't know how to have it call other manufacturers..

Here is the code.. Anyone know how to call other manufacturers logos?

I am editing this file - /common_files/modules/Manufacturers/menu_manufacturers.tpl

{if $manufacturers_menu ne ''}
{capture name=menu}
<ul>
{foreach from=$manufacturers_menu item=m}
<li><a href="manufacturers.php?manufacturerid={$m.manufac turerid}">{*{$m.manufacturer}*}
<img class="logo1" src="{if $manufacturer.image_url ne ''}{$manufacturer.image_url|amp}{else}{$xcart_web_ dir}/image.php?id={$manufacturer.manufacturerid}&amp;ty pe=M{/if}" alt="{$manufacturer.manufacturer|escape}"{if $manufacturer.image_x} width="{$manufacturer.image_x}"{/if}{if $manufacturer.image_y} height="{$manufacturer.image_y}"{/if} />
</a></li>

{/foreach}
{if $show_other_manufacturers}
<li><a href="manufacturers.php">{$lng.lbl_other_manufactu rers}</a></li>
{/if}
</ul>
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.menu additional_class="menu-manufacturers"}
{/if}
__________________
John Centi
SNOWREV
SUBURBAN BLEND
X Cart 4.4.1
Reply With Quote
  #3  
Old 01-10-2011, 01:08 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Display manufacturer logo instead on name on site

Then how to display and what is the exact codes to display logo on 4.4.1 version??
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #4  
Old 01-10-2011, 01:14 AM
 
sinobest sinobest is online now
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: Display manufacturer logo instead on name on site

just test and try, often you will find so many skills on x-cart.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #5  
Old 01-10-2011, 03:48 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Display manufacturer logo instead on name on site

The above code is not working in my site.What is the exact code to display it on 4.4.1 versions??

I cannot able to do.

Waiting for someone to reply.
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #6  
Old 03-29-2011, 11:13 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Display manufacturer logo instead on name on site

Quote:
Originally Posted by Snowrev
I was able to get logos to appear in the place of the manufacturer name by using this code in 4.4.1 but the problem is that this code is only equal to one manufacturer and will only display one logo while on that manufacturers page "same logo" for all manufacturers and I don't know how to have it call other manufacturers..

Here is the code.. Anyone know how to call other manufacturers logos?

I am editing this file - /common_files/modules/Manufacturers/menu_manufacturers.tpl

{if $manufacturers_menu ne ''}
{capture name=menu}
<ul>
{foreach from=$manufacturers_menu item=m}
<li><a href="manufacturers.php?manufacturerid={$m.manufac turerid}">{*{$m.manufacturer}*}
<img class="logo1" src="{if $manufacturer.image_url ne ''}{$manufacturer.image_url|amp}{else}{$xcart_web_ dir}/image.php?id={$manufacturer.manufacturerid}&amp;ty pe=M{/if}" alt="{$manufacturer.manufacturer|escape}"{if $manufacturer.image_x} width="{$manufacturer.image_x}"{/if}{if $manufacturer.image_y} height="{$manufacturer.image_y}"{/if} />
</a></li>

{/foreach}
{if $show_other_manufacturers}
<li><a href="manufacturers.php">{$lng.lbl_other_manufactu rers}</a></li>
{/if}
</ul>
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.menu additional_class="menu-manufacturers"}
{/if}

Hi,
I cannot able to see logo in my 4.4.2 with these codes in artistictunes_business theme..
__________________
4.6.1 Platinum


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 02:29 AM.

   

 
X-Cart forums © 2001-2020