xelion Posted April 29, 2014 Share Posted April 29, 2014 Hello Everyone... I spent hours looking for a way in which I could show product prices with or without taxes on the product page. As a customer I always hate the sneeky attempt of some suppliers which suddenly surprise with the added VAT just before checkout - which is just false advertising. So I tried to find a way to show all prices including VAT but just didnt happen - so I decided to write a couple of lines of code in products.tpl which I thought I'd share with anyone in the same position: The currency id used is the one which appears in the URL get params so that I only target GBP as a currency, although one could simply alter this to match any EU local currencies. {assign var="my_product_price" value=$product.pricing.minprice.price} <span class="pricing"> {if $currency.id == 1} £{math equation="( price * var )" price=$my_product_price|replace:'£':''|string_format:"%.2f" vat=1.2 format="%.2f"} <br /> <span class="supersmallvat">inc. VAT@20%</span> {else} {$product.pricing.minprice.price} {/if} Although admitedly not as clean a solution as I would have liked - I didn't have the time to build a module for it - but thought it may be useful as a "quick-fix" for the average user! Hope it helps! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.