wutekk Posted February 26, 2014 Share Posted February 26, 2014 Hi. I wonder if someone could help me. I want to move "reference" on the product page a bit down, just above the product price. Is there anyone who could help me with this? Link to comment Share on other sites More sharing options...
PascalVG Posted February 26, 2014 Share Posted February 26, 2014 wutekk, please add a link to your Shop, so we can see what's needed. pascal Link to comment Share on other sites More sharing options...
wutekk Posted February 26, 2014 Author Share Posted February 26, 2014 (edited) http://timage.eu I've already edited "reference" to "Part Number" now I would like to move it like that: Edited February 26, 2014 by wutekk (see edit history) Link to comment Share on other sites More sharing options...
loulou66 Posted February 26, 2014 Share Posted February 26, 2014 hi attache your file Theme=>yourtheme=>product.tpl and we can modify him. @++ loulou66 Link to comment Share on other sites More sharing options...
PascalVG Posted February 27, 2014 Share Posted February 27, 2014 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 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