kosynier8 Posted September 29, 2017 Share Posted September 29, 2017 HelloI have PS 1.7.1.2 and I would like the Manufacturer logo to appear on the product page. I found a solution on forum but for version 1.6.Thank you and best regards Link to comment Share on other sites More sharing options...
kosynier8 Posted September 29, 2017 Author Share Posted September 29, 2017 I would like the manufacturer logo to appear on the product page (not on the product list) Link to comment Share on other sites More sharing options...
kosynier8 Posted September 29, 2017 Author Share Posted September 29, 2017 Unfortunately it does not work. Link to comment Share on other sites More sharing options...
kosynier8 Posted September 29, 2017 Author Share Posted September 29, 2017 (edited) Off Course product page source <!--module manufacturerLogo---> <a href="index.php?id_manufacturer=&controller=manufacturer&id_lang="> <img src="img/m/-small_default.jpg" alt="" title=""> </a> <!--end module---> Edited September 29, 2017 by kosynier8 (see edit history) Link to comment Share on other sites More sharing options...
kosynier8 Posted September 29, 2017 Author Share Posted September 29, 2017 (edited) 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 September 29, 2017 by kosynier8 (see edit history) 1 Link to comment Share on other sites More sharing options...
Luis Posted February 17, 2018 Share Posted February 17, 2018 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 More sharing options...
mattiak78 Posted July 26, 2018 Share Posted July 26, 2018 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 More sharing options...
mistik777 Posted September 20, 2018 Share Posted September 20, 2018 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 More sharing options...
mattiak78 Posted September 20, 2018 Share Posted September 20, 2018 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 More sharing options...
mattiak78 Posted September 20, 2018 Share Posted September 20, 2018 mistik777 change all "$product->id_manufacturer" in $product.id_manufacturer Link to comment Share on other sites More sharing options...
mistik777 Posted September 21, 2018 Share Posted September 21, 2018 Prestashop 1.7.4.2 Link to comment Share on other sites More sharing options...
mistik777 Posted September 21, 2018 Share Posted September 21, 2018 SOLVED!! I change {$base_dir} with my absolute url and works fine!! Thanks Link to comment Share on other sites More sharing options...
satkauskas Posted October 17, 2018 Share Posted October 17, 2018 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} 1 Link to comment Share on other sites More sharing options...
George148 Posted May 9, 2022 Share Posted May 9, 2022 (edited) On 9/29/2017 at 2:56 PM, ndiaga said: Hi, Read this guide : http://prestatuts.com/tutorials/prestashop-adding-manufacturer-logo-to-product-list-page/ 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 June 5, 2023 by George148 (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted May 9, 2022 Share Posted May 9, 2022 Which module is it? Did you clear the cache after? Inspect the lost image code. And show it. Link to comment Share on other sites More sharing options...
George148 Posted May 9, 2022 Share Posted May 9, 2022 (edited) 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 June 5, 2023 by George148 (see edit history) Link to comment Share on other sites More sharing options...
George148 Posted May 9, 2022 Share Posted May 9, 2022 (edited) GDPRk Edited June 5, 2023 by George148 GDPR (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now