Jump to content

[PS 1.7] Manufacturer logo on product page


kosynier8

Recommended Posts

I konow. This is not part of the product.tpl file (there is a properly) only the source of the generated page

  {if isset($manufacturer_image_url)}
          <a href="{$product_brand_url}">
            <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" />
          </a>
        {else}
          <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label>
          <span>
            <a href="{$product_brand_url}">{$product_manufacturer->name}</a>
          </span>
        {/if}

I have dealt with myself. Just insert this code into product.tpl - without any modules.

Edited by kosynier8 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...
On 29/9/2017 at 7:24 PM, kosynier8 said:

I konow. This is not part of the product.tpl file (there is a properly) only the source of the generated page


  {if isset($manufacturer_image_url)}
          <a href="{$product_brand_url}">
            <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" />
          </a>
        {else}
          <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label>
          <span>
            <a href="{$product_brand_url}">{$product_manufacturer->name}</a>
          </span>
        {/if}

I have dealt with myself. Just insert this code into product.tpl - without any modules.

This work in any theme? I tryed but dosn't works in mine 

Link to comment
Share on other sites

  • 5 months later...

It work for me!

Good!!

for who say it doesn't work,
should be placed in your theme file in /templates/catalog/product.tpl
another indication .. the link/url of the image I had to change to show the image in: 

{$base_dir}/img/m/{$product.id_manufacturer}-small_default.jpg

and change

$product->id_manufacturer

 

in

$product.id_manufacturer"

 

bye

Link to comment
Share on other sites

  • 1 month later...

Could some one paste the full and correct code ??

with this doesn´t work :(

Thanks in advanced

        {*hook h="DisplayILabsManufacturerLogo" product=$products type=product*}
        {assign var=logos  value=(int)Configuration::get('manufacturerlogo_name')}
        {if isset($logos) && $logos==1}
                {Manufacturer::getNameById($product->id_manufacturer)}
                {/if}       
        <A href="{$base_dir}index.php?id_manufacturer={$product->id_manufacturer}&controller=manufacturer&id_lang={Tools::getValue('id_lang')}">
                <IMG src="{$base_dir}/img/m/{$product.id_manufacturer"}-small_default.jpg" alt="{Manufacturer::getNameById($product->id_manufacturer)}" title="{Manufacturer::getNameById($product->id_manufacturer)}">
                </A>        
 

 

 

Link to comment
Share on other sites

26 minutes ago, mistik777 said:

Could some one paste the full and correct code ??

with this doesn´t work :(

Thanks in advanced

        {*hook h="DisplayILabsManufacturerLogo" product=$products type=product*}
        {assign var=logos  value=(int)Configuration::get('manufacturerlogo_name')}
        {if isset($logos) && $logos==1}
                {Manufacturer::getNameById($product->id_manufacturer)}
                {/if}       
        <A href="{$base_dir}index.php?id_manufacturer={$product->id_manufacturer}&controller=manufacturer&id_lang={Tools::getValue('id_lang')}">
                <IMG src="{$base_dir}/img/m/{$product.id_manufacturer"}-small_default.jpg" alt="{Manufacturer::getNameById($product->id_manufacturer)}" title="{Manufacturer::getNameById($product->id_manufacturer)}">
                </A>        
 

 

 

my code that works :

<!-- module manufacturerLogo -->				
				{*hook h="DisplayILabsManufacturerLogo" product=$products type=product*}
				{assign var=logos  value=(int)Configuration::get('manufacturerlogo_name')}
				{if isset($logos) && $logos==1}
                	{Manufacturer::getNameById($product.id_manufacturer)}
                {/if}				
				<a href="{$base_dir}index.php?id_manufacturer={$product.id_manufacturer}&controller=manufacturer&id_lang={Tools::getValue('id_lang')}">
                	<img src="{$base_dir}/img/m/{$product.id_manufacturer}-small_default.jpg" alt="{Manufacturer::getNameById($product.id_manufacturer)}" title="{Manufacturer::getNameById($product.id_manufacturer)}">
                </a>				
				<!-- end module -->

prestashop version?

Link to comment
Share on other sites

  • 4 weeks later...

I just updated the file Product.TPL in themes/classic/templates/catalog 

, inserting the <!-------------------- logo------------->

see:

 

<div class="col-md-6">
          {block name='page_header_container'}
          
          <!-------------------- logo------------->
                    <p class="editable">
                    <img src="{$base_dir}/img/m/{$product.id_manufacturer}.jpg" width=100 alt="" class="img img-thumbnail manufacturer-logo" />
                    <label></label>
                    </p>
          <!-------------------- logo------------->
          
            {block name='page_header'}
              <h1 class="h1" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1>
            {/block}
          {/block}
          {block name='product_prices'}
            {include file='catalog/_partials/product-prices.tpl'}
          {/block}

  • Like 1
Link to comment
Share on other sites

  • 3 years later...
On 9/29/2017 at 2:56 PM, ndiaga said:

Hy , 
I buy the module Manufacturer logo    but dont  show the logo    in te products list  , shows only  the name  . 

Help my to resolve this please 

 

Edited by George148 (see edit history)
Link to comment
Share on other sites

On 5/9/2022 at 1:32 PM, ndiaga said:

Hi,

Please    post   your  website  url  so  that  I  can  see .

Can   you  post   your  next  question  here  :  

 

   this is the url  from my shop
The  module is this https://prestatuts.com/en/prestashop-modules/50-manufacturer-name-and-logo-on-product-list-page.html

Edited by George148 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...