edsmiths Posted April 13, 2015 Share Posted April 13, 2015 (edited) Hello, I've been following some tutorials to show both prices (with and without taxes) on the product description page only. I've made this change in product.tpl <span class="our_price_display"> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" class="pricecolor">{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} <span id="pretaxe_price_display">({convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} {l s='tax excl.'})</span> </span> <br /> In a test environment it seems functional (with a tweak in css to align both prices - as below image). Since I'm not a code expert and before I make the change in the online store, I would appreciate any feedback if the code is somehow incoreect or if there is a better way to achive what I need. Thanks, Ed Ed Edited May 5, 2015 by edsmiths (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 13, 2015 Share Posted April 13, 2015 That code looks good, but test it for combinations and specific prices as well. Prices are created through JavaScript on the product detail page. Link to comment Share on other sites More sharing options...
edsmiths Posted May 5, 2015 Author Share Posted May 5, 2015 Thanks tuk66, I've tested with specific prices and it seems ok too. Ed 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