Saad141 Posted November 22, 2015 Share Posted November 22, 2015 Hey Guys, I just want to add a fixed simple text line e.g(100% Genuine or No return) on every product page below the product name and as i am fairly new to prestashop so can anyone guide me . thanks in advance. Link to comment Share on other sites More sharing options...
Paulito Posted November 23, 2015 Share Posted November 23, 2015 Hello I suppose the easiest was is to add it directly to the relevant .tpl file, so, go to: public_html/Your website/themes/default-bootstrap/product.tpl and around line 158 add this: <div class="pb-center-column col-xs-12 col-sm-4"> {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <h4>100% Genuine Guaranteed</h4> <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> {if !$product->is_virtual && $product->condition} <p id="product_condition"> Result http://screencast.com/t/FrmzRS68jn Paul 1 Link to comment Share on other sites More sharing options...
Saad141 Posted November 23, 2015 Author Share Posted November 23, 2015 Hello I suppose the easiest was is to add it directly to the relevant .tpl file, so, go to: public_html/Your website/themes/default-bootstrap/product.tpl and around line 158 add this: <div class="pb-center-column col-xs-12 col-sm-4"> {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <h4>100% Genuine Guaranteed</h4> <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> {if !$product->is_virtual && $product->condition} <p id="product_condition"> Result http://screencast.com/t/FrmzRS68jn Paul Paul thank you very much. Your solution worked perfectly 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