harleybill Posted November 19, 2011 Share Posted November 19, 2011 I would like to display the manufacturer and supplier_reference under the product reference on the product page. I have found the location of the of the product reference in the product.tpl <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}><label for="product_reference">{l s='Reference :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span></p> I don't know what code to insert to obtain the results I want. I am using ver.1.4.5.1 Thanks for any help. Link to comment Share on other sites More sharing options...
harleybill Posted November 20, 2011 Author Share Posted November 20, 2011 I have succeeded in displaying the manufacturer and supplier_reference under the product reference on the product page. in product.tpl <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}><label for="product_reference">{l s='Reference :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> <p id="manufacturer_name" {if isset($groups) OR !$product->manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label><span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span><br> <p id="supplier_reference" {if isset($groups) OR !$product->supplier_reference}style="display: none;"{/if}><label for="manufacturer_name">{l s='Supplier Reference :'} </label><span class="editable">{$product->supplier_reference|escape:'htmlall':'UTF-8'}</span><br> (supplier reference changed to model number in translations) Now I would like supplier reference to be in the search. Never Happy 3 Link to comment Share on other sites More sharing options...
harleybill Posted November 21, 2011 Author Share Posted November 21, 2011 Added supplier_reference to search in classes/Product.php Link to comment Share on other sites More sharing options...
gatchie09 Posted November 28, 2011 Share Posted November 28, 2011 try this code... <p id="supplier_reference" {if !$product->supplier_reference}style="display: none;"{/if}><label for="manufacturer_name">{l s='Supplier Reference :'} </label><span class="editable">{$product->supplier_reference|escape:'htmlall':'UTF-8'}</span><br> Link to comment Share on other sites More sharing options...
MyNawtyToys Posted December 4, 2011 Share Posted December 4, 2011 Works great, thank you. I have succeeded in displaying the manufacturer and supplier_reference under the product reference on the product page. in product.tpl <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}><label for="product_reference">{l s='Reference :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> <p id="manufacturer_name" {if isset($groups) OR !$product->manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label><span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span><br> <p id="supplier_reference" {if isset($groups) OR !$product->supplier_reference}style="display: none;"{/if}><label for="manufacturer_name">{l s='Supplier Reference :'} </label><span class="editable">{$product->supplier_reference|escape:'htmlall':'UTF-8'}</span><br> (supplier reference changed to model number in translations) Now I would like supplier reference to be in the search. Never Happy Link to comment Share on other sites More sharing options...
shellxie Posted January 19, 2012 Share Posted January 19, 2012 when I edit the code at my PS1462, it displays only categories in the left side of the screen. It doesn't work. what is the reason? Thanks, Link to comment Share on other sites More sharing options...
shellxie Posted January 19, 2012 Share Posted January 19, 2012 finally it works. great! Link to comment Share on other sites More sharing options...
shellxie Posted January 19, 2012 Share Posted January 19, 2012 if I have only categories with site, the code works well. If I have subcategories the code will not work. How can I do? Is my subcategories number too much? Link to comment Share on other sites More sharing options...
mmsh Posted January 31, 2012 Share Posted January 31, 2012 hi, it seems i can't use {$product->supplier_reference|escape:'htmlall':'UTF-8'} anymore with 1.4.6.2 into product.tpl...category.tpl....product-list.tpl What's wrong? Some smarty changes? thanks Link to comment Share on other sites More sharing options...
shellxie Posted February 13, 2012 Share Posted February 13, 2012 when I do not use "Combination", the code works well and can display "manufacturer name" on product page, but when I use "combination", Manufacturer name disappeared. How can I fix it? Thanks, Link to comment Share on other sites More sharing options...
feri Posted April 13, 2012 Share Posted April 13, 2012 (edited) ok Edited November 12, 2012 by feri (see edit history) Link to comment Share on other sites More sharing options...
AED Posted May 4, 2012 Share Posted May 4, 2012 Maybe it will help anybody. But only this worked for me: <p class="product_name">{$product->name|escape:'htmlall':'UTF-8'}</p><br/> <span id="product_supplier">Supplier: {$product->supplier_name|escape:'htmlall':'UTF-8'}</span><br/> <span id="product_manufacturer"><a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}" title="{l s='more...'}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</a></span> 2 1 Link to comment Share on other sites More sharing options...
cogeanumarius Posted July 29, 2012 Share Posted July 29, 2012 Salve dear community, I am using PS1.4.8.2, please help me display the manufacturer in the product page. I have tried the above provided codes, none works for me Thank you for your advice Link to comment Share on other sites More sharing options...
njs Posted August 18, 2012 Share Posted August 18, 2012 Salve dear community, I am using PS1.4.8.2, please help me display the manufacturer in the product page. I have tried the above provided codes, none works for me Thank you for your advice Add following line to products.tpl <p id="manufacturer_name" {if !$product->manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label> <span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span></p> This will also show manufacturer when using combinations. 1 Link to comment Share on other sites More sharing options...
Perla2018 Posted November 8, 2012 Share Posted November 8, 2012 I have the version 1.4.8.3 Italian, can i have the string to insert reference supplier under the part number on the front office of the product' Thanks Link to comment Share on other sites More sharing options...
Perla2018 Posted November 10, 2012 Share Posted November 10, 2012 Harleybill i from the string to insert Added supplier_reference to search in classes/Product.php? Link to comment Share on other sites More sharing options...
spc Posted January 25, 2013 Share Posted January 25, 2013 hello... If i whant to ad a picture for the manufacturer in the product.tpl how can i do that... I have try this : <img src="{$img_manu_dir}{$product.id_manufacturer}-small.jpg" alt="{$product.manufacturer_name}" title="{$product.manufacturer_name}" /> It whant work... Please help me... Link to comment Share on other sites More sharing options...
Pinback Posted February 14, 2013 Share Posted February 14, 2013 @spc I'm working with PS 1.5.3 and this worked fine for me: <div id="headline_manufacturer_logo"> <img src="{$img_manu_dir}{$product->id_manufacturer}.jpg" alt="{$product->manufacturer_name}" title="{$product->manufacturer_name}" /> </div> Hope I could help! Pinback Link to comment Share on other sites More sharing options...
mani313 Posted March 12, 2013 Share Posted March 12, 2013 Can you give me code for display the block of 'other products from this manufacturer' on product page? Link to comment Share on other sites More sharing options...
Pinback Posted March 12, 2013 Share Posted March 12, 2013 @ mani313, Can you give me code for display the block of 'other products from this manufacturer' on product page? You mean the code for block-manufacturer (s. attached File)? Greez Pinback Link to comment Share on other sites More sharing options...
mani313 Posted March 13, 2013 Share Posted March 13, 2013 (edited) @ mani313, You mean the code for block-manufacturer (s. attached File)? Greez Pinback No man! I need to show in product page as below attached... Edited March 13, 2013 by mani313 (see edit history) Link to comment Share on other sites More sharing options...
ZioFranky Posted December 3, 2013 Share Posted December 3, 2013 (edited) Added supplier_reference to search in classes/Product.php Sorry can you share how you did it? I need the same thing, looked around everywhere, but it's impossible to find something about it even deep googling. So The only thing i've found is your post. How to add supplier_reference to search? I still use PS 1.3.7. Thank You Edited December 3, 2013 by ZioFranky (see edit history) Link to comment Share on other sites More sharing options...
CLance Posted March 28, 2014 Share Posted March 28, 2014 Added supplier_reference to search in classes/Product.php i need it as well... the function to search supplier name~ can you share please? Link to comment Share on other sites More sharing options...
CLance Posted March 28, 2014 Share Posted March 28, 2014 @ mani313, You mean the code for block-manufacturer (s. attached File)? Greez Pinback Yea. I need this. I want supplier name to be search. Can you share? Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted November 18, 2014 Share Posted November 18, 2014 The post is rather large. What if we wanted a block on the product detail page just below price/add to cart block? Bad idea for semantic relationship? Link to comment Share on other sites More sharing options...
Ramadan37 Posted January 9, 2018 Share Posted January 9, 2018 (edited) I would like to display the manufacturer/supplier/seller name under the product reference on the product page. How to do that ? i'm using PrestaShop version 1.6.1.10 This is my code on product.tpl <p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}> <label>{l s='Reference:'} </label> <span class="editable" itemprop="sku"{if !empty($product->reference) && $product->reference} content="{$product->reference}{/if}">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> Edited January 9, 2018 by Ramadan37 (see edit history) Link to comment Share on other sites More sharing options...
pizzaparty Posted September 23, 2021 Share Posted September 23, 2021 Hi i desire add this text in the new shop https://test001.pizzapartyshop.com/en/3-wood-fired-oven (as I had in my old shop https://www.pizzapartyshop.com/en/wood-fired-oven/ ) what is the correct code for this text? 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