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

Manufacturers with icons on customer_manufacturers_list.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 06-07-2010, 03:26 AM
  DrQuietus's Avatar 
DrQuietus DrQuietus is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 81
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Going through the posts, this is my .tpl in 4.3:

Code:
<h1>{$lng.lbl_manufacturers}</h1> {capture name=dialog} {include file="customer/main/navigation.tpl"} {assign var="tmp" value="0"} {section name=mid loop=$manufacturers} {if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if} {/section} <ul class="manufacturers-list list-item"> {section name=mid loop=$manufacturers} <li> <a href="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"> <img src="image.php?id={$manufacturers[mid].manufacturerid}&type=M" /><br /> {$manufacturers[mid].manufacturer}</a> </li> {/section} </ul> {/capture} {include file="customer/dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog noborder=true}

Then just style the list.
__________________
Dave Jones
dave@industrialwebworks.net
Mostly 4.7.2 - 4.7.5
Reply With Quote

The following user thanks DrQuietus for this useful post:
FTI (06-14-2010)
  #52  
Old 06-14-2010, 09:03 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Thank you very much, DrQuietus. I'm using your code just to show the manufacturer logo in product_details.tpl. But I'm getting No image, despite I've associated the product with a custom manufacturer that has a logo. Can you help me out with the code, so I can show the logo there? Thanks in advance!

Version: 4.3.1
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #53  
Old 06-28-2010, 04:21 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Anyone?
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #54  
Old 06-28-2010, 09:30 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Quote:
Originally Posted by FTI
Anyone?

got it?
__________________
4.6.1 Platinum


Reply With Quote

The following user thanks Learner for this useful post:
FTI (06-29-2010)
  #55  
Old 06-29-2010, 05:58 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Yep, this code works like a charm in v.4.3.1 Thank you so much!

Code:
{if $product.manufacturerid ne 0} <br /> <div align="left"> <img src="image.php?id={$product.manufacturerid}&type=M " alt=""> </a></div> {/if}
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #56  
Old 08-30-2010, 03:52 PM
  techker's Avatar 
techker techker is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 155
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

think we can add this to the bottom of the template?so in the footer all the logos are there?

it's bootom.tpl right?
__________________
X-Cart version 4.4.3
Reply With Quote
  #57  
Old 11-04-2010, 05:54 AM
 
Snowrev Snowrev is offline
 

Member
  
Join Date: Oct 2010
Posts: 24
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Anyone figure this out on 4.4.1?
__________________
John Centi
SNOWREV
SUBURBAN BLEND
X Cart 4.4.1
Reply With Quote
  #58  
Old 11-04-2010, 06:49 AM
 
Snowrev Snowrev is offline
 

Member
  
Join Date: Oct 2010
Posts: 24
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

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}
See below
__________________
John Centi
SNOWREV
SUBURBAN BLEND
X Cart 4.4.1
Reply With Quote
  #59  
Old 11-27-2010, 07:26 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Quote:
Originally Posted by Learner
I want to display the manufacturer's name/logo which are currently on that category.I have approximately 50 manufactures in my store.Each manufacturer links with different different category.Suppose X category links with a,b,c,d manufacturer's product among 50 manufacturers.I want to display only a,b,c,d manufacturer's name/logo when I click on X category.Is it possible? Can anyone help me?
Thanks to all.

Any help about display manufacturer logo only linked with current category???

waiting for someone to reply.
__________________
4.6.1 Platinum


Reply With Quote
  #60  
Old 01-10-2011, 01:03 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

How to display it on 4.4.1 versions??
__________________
4.6.1 Platinum


Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 01:06 AM.

   

 
X-Cart forums © 2001-2020