Jump to content

Customizing Product Page


Recommended Posts

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
 
 
Paul
  • Like 1
Link to comment
Share on other sites

 

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
 
 
Paul

 

Paul thank you very much.

Your solution worked perfectly

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...