Jump to content

Displaying TAXES on Product Page


xelion

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated