If this is your first visit, check our documentation. To post, register or login.
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Displaying prices inclusive of VAT

Displaying prices inclusive of VAT

Started by tsrplatelayer on 5 Feb 2011, 11:50 AM · Views: 1,799

Results 1 to 2 of 2
5 Feb 2011, 11:50 AM
#1
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Displaying prices inclusive of VAT

In my shop http://www.freight-stop-shop.co.uk/driving/ I have set the prices to display as 'Gross' i.e. including VAT.

This means that on the checkout-payment page the subtotal dont 'add-up' i.e. the sub total is shown as the 'gross' price, shipping is listed (0 in ths case) and then VAT is shown, Finally the total is shown - which is not the sum ofe the above entries.

How can I display the price as inclusive of VAT on the products listings and on the checkout-payment page show the subtotal without VAT included.:(

Advice greatly appreciated

5 Feb 2011, 12:07 PM
#2
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Displaying prices inclusive of VAT

I can see in includes/classes/order.php line 513 that the tax content of tax-included prices is calculated, however I cannot see that shown-price is changed to reflect tax-excluded price.

      if (DISPLAY_PRICE_WITH_TAX == 'true') {
        // calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
        $tax_add = $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
      } else {

I ask becaue PayPal reports an error that sub totals dont add up