Post by Vector224 » Fri Sep 29, 2023 8:35 am

I'm in the process of building an online store that operates in three different countries, each with its unique tax rates. Currently, the store displays prices with tax included for the default country only. However, I need a solution to show customers the correct tax rate based on their country.

I've observed that when a customer logs in, the store accurately displays the tax rate corresponding to their account's address. Therefore, I'm exploring the possibility of finding an extension that can create a popup when any customer visits the store. This popup would prompt them to select their country so that the store can display the appropriate tax rate.

I've scoured the OpenCart marketplace and consulted various developers, but I haven't been able to locate an extension that accomplishes this. If anyone is aware of such a modification's existence or has any insights, I would greatly appreciate your assistance.

Thanks a lot!

New member

Posts

Joined
Thu May 03, 2018 4:43 am


Post by Johnathan » Fri Sep 29, 2023 10:01 pm

Geo IP Tools can do this. It will automatically detect the visitor's location based on IP address, and you can optionally have it show a pop-up so they can change their address. The extension will set the address into the OpenCart session data, which will trigger the tax display to be for that area (as long as you're not basing your tax on your Store Address).

Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any questions.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Vector224 » Sat Sep 30, 2023 3:50 am

Hi there,

Thank you for your response. I'm afraid it may cause too many redirect issues. Google doesn't like that, and I won't be able to run ads on Google or Google Merchant Center. It happened to me before with another extension. You said "and you can optionally" does that mean I can I disable the auto redirection and only let the customer choose the country to prevent this issue from happening? Just want to make sure

New member

Posts

Joined
Thu May 03, 2018 4:43 am


Post by SohBH » Sat Sep 30, 2023 3:50 pm

You can opt for different domain extensions for each country.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Johnathan » Sat Sep 30, 2023 10:18 pm

302 redirects wouldn't be an issue, for a couple of reasons:

1. 302 redirects only occur if you are changing the language/currency or setting up a redirect in the extension. You need to redo a redirect to change the language/currency (and have the change display to the customer immediately) or to properly process the redirect. If you aren't doing any of those things, a 302 redirect wouldn't happen.

2. If the pop-up is turned on, it wouldn't redirect anyway. The pop-up loads with the initial location detected, and the customer can then change it. It *will* reload the page after the customer confirms their location, but that is so that the tax & pricing display can pick up on the new location set in the session data. That's a reload though and not a 302 redirect.

3. You can also set the extension to ignore specific user agents or IPs, so that it does not affect bots like Google's scrapers. I haven't had anyone complain about that method, though it occasionally takes some tweaking to the list of user agents / IPs. It does come with the ones I'm aware of, but you may need to analyze the Testing Mode logs to see what the user agent is for your specific bot.

4. Lastly, if you prefer, I could give you an edit that would disable the initial location detection. That means the pop-up country field would not be pre-populated, but if you prefer that I can tell you how to do it in the code.

Feel free to try this out in the demo, and you can analyze how your browser processes the page loading. If you know how to use the browser inspector console, you can see the responses, including the 200 and 302 responses.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: Google [Bot] and 4 guests