Jump to content

How to move down "reference" on product page


wutekk

Recommended Posts

Hi loulou, wutekk  (sorry loulou ;)  )

Try this:

 

Backup the file themes/<your theme folder>/product.tpl and then edit it.

 

Find the word product_reference in the file (use Ctrl-F in your browser/editor)

You will hopefully find something like this

 

 

<p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}>
<label>{l s='Reference:'} </label>
<span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span>
</p>
 
 
Select the whole text, from the <p  up until the </p> and cut it.   (We will paste it later, a little down)
 
 
Then fry to find the following piece of code: Search for our_price_display (use Ctrl-F)
 
 
			<div class="price">
				<p class="our_price_display">
				{if $priceDisplay >= 0 && $priceDisplay <= 2}
					<span id="our_price_display">{convertPrice price=$productPrice}</span>
					<!--{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
						{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
					{/if}-->
				{/if}
				</p>
...

Now paste the cut code just BEFORE the first line of the found code  (i.e. paste on the line just above <div class="price">   )

 

 

Together, you'd get something like:


			<p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}>
				<label>{l s='Reference:'} </label>
				<span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span>
			</p>

			<div class="price">
				<p class="our_price_display">
				{if $priceDisplay >= 0 && $priceDisplay <= 2}
					<span id="our_price_display">{convertPrice price=$productPrice}</span>
					<!--{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
						{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
					{/if}-->
				{/if}
				</p>

save the file and reload the page.

 

Hope this does the trick,

pascal.

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