Is it possible to calculate the Total amount with used defined VAT rate rather than default VAT using TC functions.?
Hi
I have created a VAT Group which contains some countries with different VAT rates..
Right now I'm using,
var order = TC.GetCurrentOrder(storeId);
Here in order i got total amount calculated with product price and default VAT.
I need to pick one of the countries from the VAT Group based on the culture used.
Is it possible to calculate the Total amount with used defined VAT rate rather than default VAT.?
You'll need to set the order Shipping Country / Region (or Payment Country / Region which will be used as a fallback if no Shipping Country / Region are defined) in order for it to know which region you want to calculate VAT for
Is it possible to calculate the Total amount with used defined VAT rate rather than default VAT using TC functions.?
Hi I have created a VAT Group which contains some countries with different VAT rates..
Right now I'm using,
var order = TC.GetCurrentOrder(storeId);
Here in order i got total amount calculated with product price and default VAT. I need to pick one of the countries from the VAT Group based on the culture used. Is it possible to calculate the Total amount with used defined VAT rate rather than default VAT.?
Thanks
Hi Arun,
You'll need to set the order Shipping Country / Region (or Payment Country / Region which will be used as a fallback if no Shipping Country / Region are defined) in order for it to know which region you want to calculate VAT for
Once your order has a relevant region, it should calculate the VAT accordingly.
Matt
Hi Matt I don't have a region., so i tried the mentioned code with regiondId as 0, but doesn't work
in this case, var order = TC.GetCurrentOrder(storeId);
I'm getting the VAT rate of the first country in the from the VAT group.
Hi Arun,
The region is nullable so you can pass
null
if you you don't have a region.I'm pretty sure that should be all you need for it to work. I take it you have assigned the VAT rate to the order?
Matt
Thanks Matt : ) It works...
Awesome 👍
is working on a reply...