Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can we set country-specific VAT % in the cart?
I'm always having the same VAT rate of the default country selected on the Store properties. It is not changing according to culture.
Assuming you have a VAT group that has different VAT rates per country defined:
Then you'd need to update the current orders payment country to that of the current culture (see docs at https://docs.teacommerce.net/3.3.0/api/country/#setcurrentpaymentcountry, you'll probably want the Razor version).
Ultimately this doesn't normally happen until the checkout page where the customer enters their payment country, so hence why it's probably not updating.
If you wanted to try and set this automatically, your only option really would be to try and use some kind of IP lookup to try and guess their physical location and then set the order country that way.
Just to highlight, there is a difference between culture/language and shipping country. You may have a visitor who is Spanish but live in England, so you can't assume the language is indicative of the Country they reside.
Hope this helps.
Thanks for the help Matt :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted