I am creating an ecommerce system where i would need to calculate taxes for diffrent countries during checkout. I have added a flat rate for the tax, but that is not how tax works, it need to be percentage based which i have done, but how do i know the country a user is about to order a product from and also get the tax amount for that country and do my basic calculation.
please if you have done this before i would really appreciate any help as that would help me fix this issue.
Right now, this is how i am performing the tax calculation with a fixed percentage for all users from all countries
how about if i want to use the user’s country? and also i have a guest checkout feature, where a user don’t have to signup to make an order, how do i get thier country in that scenario? should i get it from when they fill out thier shipping address.
thanks for this, i was already trying to do this using thier ip addr
we have a similar feature, but there are lot of problem using the user country, what we did and the end, was ask the user for the address and use that address for taxes because in our case anyway we need to ship some