Jump to content

Add reference number to single product page


Recommended Posts

  • 1 year later...

Pls tell me how, I would love to put this in the brief description..

 

Thanks in advance!

You should be able to do this by editing your product.tpl file.

Look for this:

  <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 move that code into this:

 <div id="short_description_block">
  {if $product->description_short}
<div id="short_description_content" class="rte align_justify">{$product->description_short}</div>
  {/if}

The end result should look something like this:

 <div id="short_description_block">
  {if $product->description_short}
<div id="short_description_content" class="rte align_justify">{$product->description_short}</div>
  {/if}
  <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>

You'll need to edit product.css if you want to change the way it looks.

Don't forget to enable 'Force compile' in your backoffice for changes to TPL files.

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...