Jump to content

Include tax in final price


Recommended Posts

Name: tax_include_mod.zip

Version: 1.0

Author: Tom Ringström

Short Description: Include tax in final price

Long Description:

This modification will include the tax to the final price at check out instead of adding the tax you have selected in the admin->settings page to the price. Please note that you enter the correct taxing amount that should be included in the final price at checkout.

[Download File]

Link to comment
Share on other sites

  • 1 year later...

can you explain this mod again. I didn't really catch your drift. Got a feeling i've seen something like this b4 in requestamod

Link to comment
Share on other sites

  • 1 month later...

where do you want the tax added?

i have mod where all prices are shown before tax then when you go to checkout it works out tax on products+p&p then adds it on, rather than just on products.

Link to comment
Share on other sites

couple of quick questions

1 which version of cc are u using?

2 does ur cart add tax on already?but just on products?

3 do you want it to be added onto total value of cart after p&p has been added?

Link to comment
Share on other sites

Guest Emediate

I'm using 2.0.7

We put all products into the database as including Tax (10%). Then the store adds 10% tax to the final price.

It would be better to put all products in as including tax (as we have been) and then the store just works out and reports the tax amount from the already including tax prices at checkout.

Link to comment
Share on other sites

I'm designing a site (with 2.0.7) that is essentially retail but that will also supply some trade (giving them a discount via qdpie's coupon/discount mod). What I'd like to do with tax is show price with and without tax where ever price appears (for uk vat post carries tax too).

Link to comment
Share on other sites

to add vat(tax) after p&p has been added find this in order.php in main folder might be slightly different than this code remember mines been major modded but it close to this and near end roughly line 440 and after this code

}// ends loop for each product

replace this

$cart_total=$cart->cart_total($prefix,$session,$sale);

$total_ship = $total_per_item + $max_per_ship;

$pre_total_tax = $cart_total * ($site_tax/100);

$payable = $cart_total + $total_ship + $pre_total_tax;

$total_ship = sprintf("%.2f", $total_ship);

$pre_total_tax = sprintf("%.2f", $pre_total_tax);

$payable = sprintf("%.2f", $payable);

with this

$total_ship = $total_per_item + $max_per_ship;

$payable = $cart_total + $total_ship;

$pre_total_tax = $payable * ($site_tax/100);

$payable = $payable + $pre_total_tax;

$total_ship = sprintf("%.2f", $total_ship);

$pre_total_tax = sprintf("%.2f", $pre_total_tax);

$payable = sprintf("%.2f", $payable);

Link to comment
Share on other sites

  • 2 weeks later...
Guest bennyuk

I am looking to solve this also. My product's price include the VAT (tax). To show the vat on the payment screen I use the following

$pre_total_tax = $payable * (1 - 1/(1+$site_tax/100));

Link to comment
Share on other sites

×
×
  • Create New...