I noticed a bug (I think!) with the VAT calculations in my two current TC2 projects. It seems to be the same in the starter kit demo site: http://starterkit.teacommerce.net/frontpage/. If you add a single item to the cart and then view the cart, the VAT isn't added to the total. So you get:
Unit price: $55 Subtotal: $55 VAT: $5 Total: $55
Could you confirm whether this is a bug or not and/or whether it's been addressed in 2.1?
Actually that looks right. Unit price and Subtotal is including VAT and so is Total. The $5 is just the VAT.
If you want to show the prices without VAT you can just use price without VAT. In Tea Commerce 2.0 all prices are objects which contains all kinds of information about the specific price. Check it out with codecompletion in Visual Studio.
Okay thanks Rune. I must be using net price for my product listings but the cart is using gross price for the products, so it looks odd to the customer. I thought I'd based everything very much on the starter kit but will double check...
Edit: actually, thinking about it, isn't it weird to have a sub-total and total that will always be the same? Why have both if the sub-total is the total? I'm sure that most carts I've seen have sub-total (net of VAT) > VAT > total (gross). Not a big problem, just seems a bit weird.
Tea Commerce 2.0 > 2.1 upgrade procedure
Hi,
What's the recommended upgrade procedure to go from 2.0 > 2.1?
Thanks
Just install as normal - Tea Commerce takes care of the upgrade process. Have in mind the breaking changes: http://documentation.teacommerce.net/revision-history/
The most common breaking change to have it about the order properties. You can see how it should be in 2.1 of Tea Commerce here in the HTML API documentation: http://documentation.teacommerce.net/html-api/order-property/addorupdateorderproperties/
Kind regards
Anders
Thanks Anders.
I noticed a bug (I think!) with the VAT calculations in my two current TC2 projects. It seems to be the same in the starter kit demo site: http://starterkit.teacommerce.net/frontpage/. If you add a single item to the cart and then view the cart, the VAT isn't added to the total. So you get:
Could you confirm whether this is a bug or not and/or whether it's been addressed in 2.1?
Thanks
Hi Dan,
Actually that looks right. Unit price and Subtotal is including VAT and so is Total. The $5 is just the VAT.
If you want to show the prices without VAT you can just use price without VAT. In Tea Commerce 2.0 all prices are objects which contains all kinds of information about the specific price. Check it out with codecompletion in Visual Studio.
/Rune
Okay thanks Rune. I must be using net price for my product listings but the cart is using gross price for the products, so it looks odd to the customer. I thought I'd based everything very much on the starter kit but will double check...
Edit: actually, thinking about it, isn't it weird to have a sub-total and total that will always be the same? Why have both if the sub-total is the total? I'm sure that most carts I've seen have sub-total (net of VAT) > VAT > total (gross). Not a big problem, just seems a bit weird.
Bear. As In 'bearing' a load. Not as in GRRRRRRR.
Bare In Mind = Kate Winslet.(empty head - the cupboard is bare)
:-)
Dan I also noticed this - if you are using the starter kit ecommerce.js you can just change (I think!):
cart.find('#subtotalPrice').text(order.subtotalPrice.withVatFormatted);
to
cart.find('#subtotalPrice').text(order.subtotalPrice.formatted);
is working on a reply...