Hi,
@careykf : I had exactly the same problems than you. If I understand well you manage your prices including VAT when you add a product ? I had the same problem than you with the VAT management with ubercart, but there is one things I'm pretty sure, it's to absolutely avoid to manage products price including VAT.
VAT is not for you, it is for your country, so it's a non-sense to manage your prices including VAT. In addition, if you want to add a discount system on your shop, the calculation will be wrong as it have to be calculated on excluding VAT prices. The informations you send to google analytics will be wrong too for the same reasons.
If your shop have to display prices including VAT (as mine), you should use the module Add tax to product prices I develop because I had the same needs than you, but I didn't want to manage product price including VAT for all reasons listed above.
The problem is that the module correctly display the product price including VAT on the product price, and on the cart. But, in the checkout page, all prices are displayed excluding VAT. I know this is a problem, but today, there is no real solutions without hacking the core (at least, I didn't find one...) because the first line item subtotal price is calculated by adding $item->quantity * $item->price of the cart, line by line. So, if I put price including tax in the cart of the checkout page, the subtotal will be including taxes, the discounts will be calculated on subtotal including tax etc.... All calculation will be wrong, and the tax module will add a tax at the end on price already including taxes, that's why it was impossible.
The way to do would be to change the way the subtotal is calculated. In my module, you can choose which role can see product prices without vat and which roles see product price with VAT, so, somewhere in the ubercart subtotal calculation, it need a code that detect the user role, if role see product prices excluding VAT > make the actual calculation. And if the role see product prices including VAT > remove the VAT to the subtotal calculation. Like this, you will be able to keep a shopping cart including VAT and have a subtotal excluding VAT.
But the other problem is that, even if you keep your product prices including VAT for a coherent display to your user during all checkout process, they have to be added in the database without VAT, so I think ubercart core, would alter something else than the subtotal calculation to save the orders items excluding VAT, to keep coherence for administrator that have to manage their products without VAT.
So the VAT price problem is a display issue only. Ubercart is already made to manage products price excluding VAT, and this is the good way to proceed. The missing stuff is to provide an option that allow, even if your products are managed without VAT, to display product prices including VAT to users, on all the shop and during all the checkout process.



Joined: 08/13/2007