Jump to content
issam.mousleh

Automatically detect customer's country

Recommended Posts

Hello All

I would like to ask, is there a way to automatically detect the customer's country, before checkout.

 

The problem is that the system automatically selects Denmark and the tax in Denmark is 25%. Therefore, if the customer is from a country other than Denmark and the customer has not changed the country and continues the purchase, the system will generate the invoice incorrectly and the customer will pay more, and I will have to fix a lot of things after that.

 

For information I have (Geolocation Hook For WHMCS) already installed. But it didn't help me solve the problem.

 

Do you have suggestions or solutions to this problem?

 

2019-10-07.png.ab5cebf004e6c3dcdcb8af5f2affee54.png

Share this post


Link to post
Share on other sites
19 hours ago, issam.mousleh said:

Do you have suggestions or solutions to this problem?

you could change your default county in general settings -> localisation to a country other than Denmark, e.g to one that you don't change taxes to, such as United States - and then the cart will assume that the customer is from the US unless told otherwise and not add tax by default.... though then you have the opposite problem if they don't change their country, you might not be charging them tax when you should be.

Advanced Localisation can set the country, but there is probably a way to get the MG hook to do it...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated