Jump to content

Automatically detect customer's country


issam.mousleh

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

Link to comment
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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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