Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vineeth 71 posts 291 karma points
    Feb 18, 2019 @ 12:51
    Vineeth
    0

    How can we set country-specific VAT % in the cart?

    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.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 18, 2019 @ 13:17
    Matt Brailsford
    100

    Hi Vineeth,

    Assuming you have a VAT group that has different VAT rates per country defined:

    Country specific VAT

    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.

  • Vineeth 71 posts 291 karma points
    Feb 18, 2019 @ 13:27
    Vineeth
    0

    Thanks for the help Matt :)

Please Sign in or register to post replies

Write your reply to:

Draft