alfredopacino Posted April 4, 2014 Share Posted April 4, 2014 http://www.timefy.com/en/active/1817-sentry-leather-natural-black-nixon.html there is a way for add automatically a manifacturer tab in the product page and shows the logo (you see on the right) like this shop? Link to comment Share on other sites More sharing options...
alfredopacino Posted April 7, 2014 Author Share Posted April 7, 2014 (edited) up? i found this code for show the manifacturer name, but not the logo <span id="product_manufacturer"><a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</a></span> and what about the manifacturer tab? Edited April 7, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
alfredopacino Posted April 8, 2014 Author Share Posted April 8, 2014 (edited) i solved for the manifacturer logo {if $product_manufacturer->name} <a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}"> <img src="/img/m/{$product->id_manufacturer}.jpg" /> </a> {/if} there is a way to ADD a manifacturer tab to the products like the link? Edited April 8, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2014 Share Posted April 9, 2014 hello you mean "brand" ? and where you want to include it? near "more info" ? Link to comment Share on other sites More sharing options...
alfredopacino Posted April 9, 2014 Author Share Posted April 9, 2014 yes i mean that. Link to comment Share on other sites More sharing options...
bwaje Posted April 9, 2014 Share Posted April 9, 2014 Hi, there was a hack for 1.5.6 but it does not work anymore in 1.6, see this post : http://www.prestashop.com/forums/topic/35207-show-manufacturer-in-product-listing/page-2?do=findComment&comment=1607911 Where do you insert your code ? in wich file ? Thanks Link to comment Share on other sites More sharing options...
alfredopacino Posted April 9, 2014 Author Share Posted April 9, 2014 (edited) Hi, there was a hack for 1.5.6 but it does not work anymore in 1.6, see this post : http://www.prestashop.com/forums/topic/35207-show-manufacturer-in-product-listing/page-2?do=findComment&comment=1607911 Where do you insert your code ? in wich file ? Thanks what you what to do exactly? show the manifacturer logo/name in the product page, in product list or a manifacturer tab in product page? Edited April 9, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
bwaje Posted April 9, 2014 Share Posted April 9, 2014 Exactly, show manufacturer in product page, with product detail; also adding the manufacturer logo would be great; see how I would like to display this info in the pics below Link to comment Share on other sites More sharing options...
alfredopacino Posted April 9, 2014 Author Share Posted April 9, 2014 i already post in this thread the PS 1.6 code for the logo and the name, i don't know if you can add the manifacturer in the details. Link to comment Share on other sites More sharing options...
bwaje Posted April 9, 2014 Share Posted April 9, 2014 i already post in this thread the PS 1.6 code for the logo and the name, i don't know if you can add the manifacturer in the details. Yes, thanks for the code, but WHERE do you insert it ? Link to comment Share on other sites More sharing options...
alfredopacino Posted April 9, 2014 Author Share Posted April 9, 2014 (edited) Yes, thanks for the code, but WHERE do you insert it ? in product.tpl where you want to show the logo for example i added the logo above the product name <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> so you have to paste the code BEFORE this ~150-155th row Edited April 9, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 if you want to display manufacturer tab it's necessary to creat it first in product.tpl use this code: <section class="page-product-box"> <h3 class="page-product-heading">{l s='Manufacturer'}</h3>{/if} <div class="rte">{$product_manufacturer->name}</div> </section> right after <!-- More info --> ... <!--end More info --> Link to comment Share on other sites More sharing options...
felixdpg Posted April 10, 2014 Share Posted April 10, 2014 Hi vekia: What about show brand in the product page? Br Felix Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 and brand is? is this somehow defined somewhere in back office on product edit page? Link to comment Share on other sites More sharing options...
felixdpg Posted April 10, 2014 Share Posted April 10, 2014 I mean as brand: nike, adidas, or whatever. Is defined in back office thanks in advance Br Felix Link to comment Share on other sites More sharing options...
alfredopacino Posted April 10, 2014 Author Share Posted April 10, 2014 (edited) if you want to display manufacturer tab it's necessary to creat it first in product.tpl use this code: <section class="page-product-box"> <h3 class="page-product-heading">{l s='Manufacturer'}</h3>{/if} <div class="rte">{$product_manufacturer->name}</div> </section> right after <!-- More info --> ... <!--end More info --> i get this error Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ... @felixdpg i guess you mean the manufacturers, i post the code in this thread. Edited April 10, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
bwaje Posted April 10, 2014 Share Posted April 10, 2014 i solved for the manifacturer logo {if $product_manufacturer->name} <a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}"> <img src="/img/m/{$product->id_manufacturer}.jpg" /> </a> {/if} there is a way to ADD a manifacturer tab to the products like the link? This hack works, but I have a broken image in my product page : e.g. Not Found The requested URL /img/m/23.jpg was not found on this server. I tried to generate new thumbnails but no more logo displayed ;( up? i found this code for show the manifacturer name, but not the logo <span id="product_manufacturer"><a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</a></span> and what about the manifacturer tab? I cannot insert this code part, it breaks the syntax of the product.tpl file Link to comment Share on other sites More sharing options...
felixdpg Posted April 10, 2014 Share Posted April 10, 2014 works for me but the image are to close of the condition (new, used, etc), for this, I insert after the code a br tag, now is perfect! thanks so much Regards Felix Link to comment Share on other sites More sharing options...
alfredopacino Posted April 10, 2014 Author Share Posted April 10, 2014 (edited) about your broken image, my code show the original manifacturer image file you uploaded, you have to check via ftp if /img/m/23.jpg exists please note if your PS is on a third domain o a different folder from root you have to change the image source: <img src="PSFOLDER/img/m/{$product->id_manufacturer}.jpg" /> maybe vekia knows a better solution for a relative source. Edited April 10, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
bwaje Posted April 10, 2014 Share Posted April 10, 2014 That works now, there was a directory before "img"; and I have changed the image size to show a smaller logo : <img src="/boutique/img/m/{$product->id_manufacturer}-small_default.jpg" /> Next step that I need is to display the manufacturer's name in the characteristics in the product page, any idea please ? Link to comment Share on other sites More sharing options...
Ron morales Posted May 20, 2014 Share Posted May 20, 2014 (edited) insert this code <a href="{$link->getPageLink('manufacturer.php')}?id_manufacturer={$product.id_manufacturer}" title="{$product.manufacturer_name}"><!--{$product.manufacturer_name}</a>--> <img src="{$img_manu_dir}{$product.id_manufacturer}-medium_default.jpg" alt="{$product.manufacturer_name}" title="{$product.manufacturer_name}" /></a> Edited May 20, 2014 by Ron morales (see edit history) Link to comment Share on other sites More sharing options...
alfredopacino Posted July 16, 2014 Author Share Posted July 16, 2014 (edited) with the latest PS update this link doesn't work anymore (the ron morales one neither) <a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">MANIFACTURER</a> i get this page [Debug] This page has moved Please use the following URL instead: http://zarrillosport.it/21_arnold Edited July 16, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts