PortCityMedical Posted April 4, 2012 Share Posted April 4, 2012 Hello, I am trying to figure out it if it possible to change the "Reference" field to "SKU". The Reference field does exactly what I need to display a product number, but just as a matter of personal preference I would like it to say SKU. Is this possible? Thanks Byron Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 5, 2012 Share Posted April 5, 2012 Hi Byron, To change that text in your Front Office, you will need to open your theme's product.tpl file and find the following code (around line 321): <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> and replace it with <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}><label for="product_reference">{l s='SKU :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span></p> To change it in the Back Office as well, open your admin/tabs/AdminProducts.php file, and around line 2221, find: <td class="col-left">'.$this->l('Reference:').'</td> and replace it with <td class="col-left">'.$this->l('SKU:').'</td> I hope this helps. -Mike Link to comment Share on other sites More sharing options...
PortCityMedical Posted April 27, 2012 Author Share Posted April 27, 2012 Hi Mike, I completely forgot I started this thread until now. Thanks for the reply. This solution worked perfectly for me! -Byron Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 27, 2012 Share Posted April 27, 2012 Great, I'm glad I could help! Happy selling! -Mike Link to comment Share on other sites More sharing options...
elnur Posted August 28, 2012 Share Posted August 28, 2012 Hi Byron, To change that text in your Front Office, you will need to open your theme's product.tpl file and find the following code (around line 321): <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> and replace it with <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}><label for="product_reference">{l s='SKU :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span></p> To change it in the Back Office as well, open your admin/tabs/AdminProducts.php file, and around line 2221, find: <td class="col-left">'.$this->l('Reference:').'</td> and replace it with <td class="col-left">'.$this->l('SKU:').'</td> I hope this helps. -Mike And for me, it did not help, I changed the word everywhere possible and nothing has changed. What is wrong? Link to comment Share on other sites More sharing options...
nusapenida Posted November 3, 2013 Share Posted November 3, 2013 (edited) how to fill sku with automate product sku number? any references? I've used v.1.5.6 this file location may different. admin => /admin/themes/default/template/controllers/products/informations.tpl front-end, you may also edit shopping-cart.tpl Edited November 3, 2013 by nusapenida (see edit history) Link to comment Share on other sites More sharing options...
tssaini987 Posted August 24, 2017 Share Posted August 24, 2017 Hi, I am using prestashop 1.7.2 and wanted to change product reference to SKU. Someone please help with the instruction as i am not good in coding at all and it is really important for me to place SKU it there. Link to comment Share on other sites More sharing options...
Recommended Posts