hippooflove Posted February 27, 2012 Share Posted February 27, 2012 Good morning I am using prestashop 1.4.7 and the new prestashop theme. On the product page, where is shows the price i.e £30.00, I want to add the words "Dropship Price" directly before the £30. Can anybody tell me where I need to add the words. Is it in the file manager somewhere and if so what file and would should the line look like in the coding please. thanks in advance Hippooflove Link to comment Share on other sites More sharing options...
affect Posted February 27, 2012 Share Posted February 27, 2012 For the default theme, you'll need to find <span id="our_price_display"> in the product.tpl template and add your words either right before or inside that span depending on how you want it styled. Also if you want the words to be translatable, add them using Smarty like that: {l s='Dropship Price'} Link to comment Share on other sites More sharing options...
hippooflove Posted February 27, 2012 Author Share Posted February 27, 2012 Thanks for taking the time to reply affect. I have found the code you are taking about. I have added line you suggest but no change in front office. Lines are at 321 in Product.tpl. <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}--> Please can you show me what the new one should look like please. Hippooflove Link to comment Share on other sites More sharing options...
affect Posted February 27, 2012 Share Posted February 27, 2012 Line 3 in your paste should look somewhat like this: {l s='Dropship Price'}<span id="our_price_display">{convertPrice price=$productPrice}</span> Link to comment Share on other sites More sharing options...
hippooflove Posted February 27, 2012 Author Share Posted February 27, 2012 Thanks That's what I entered after your first reply and it did not show up. any other thoughts please? I had coding as I do not understand it very much. Hippooflove Link to comment Share on other sites More sharing options...
affect Posted February 27, 2012 Share Posted February 27, 2012 Make sure you have Force compile set to Yes in Preferences - Performance - Smarty. You won't see template changes if it's disabled. Link to comment Share on other sites More sharing options...
hippooflove Posted February 27, 2012 Author Share Posted February 27, 2012 Brilliant many thanks for your help affect Hippooflove. Link to comment Share on other sites More sharing options...
Recommended Posts