Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Best Practices for Redirecting Users to Different Stores Based on Geolocation in Hydrogen

Best Practices for Redirecting Users to Different Stores Based on Geolocation in Hydrogen

AndrijaCM
Tourist
3 0 1

Hello everyone.
We are using Hydrogen and we are looking to set up multiple identical stores (e.g. EU & US store) since we need multiple instances of Stripe and PayPal and we can't use Shopify Payments, Shopify Markets also won't help us with this. We need custom implementation for redirecting users to appropriate store.


Now since they are identical stores we will be using same codebase and are wondering what are the best practices for redirecting users based on Geolocation. Any guidance or code examples on how to achieve this would be appreciated.

Thank you in advance!

Replies 4 (4)

PurplePartner
Shopify Partner
193 18 33

Hi @AndrijaCM,

 

Thanks for being part of the Shopify Community! I can see why you do not want to use Shopify Payments and decided to use third-party payment gateways, but I am not sure why you're not using Shopify Markets. Is that because you do not want to keep everything under one store, and you prefer using different Shopify accounts? 

 

If that's the case and you want to redirect people from an independent domain to another (example.de to example.fr) - both stores being on a different Shopify account - then I recommend reaching our specialists in URL, DNS Management and redirection. Cloudflare has some interesting tools and you might want to get in touch.

 

If you want to use only one Shopify account though, Shopify Markets will help you.

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
AndrijaCM
Tourist
3 0 1

But as far we understand, Shopify Markets doesn't allow for multiple instances of PayPal & Stripe. We need one PP & Stripe account for EU region and other instances for US. Can Shopify Markets help with this?


How can we reach your URL, DNS Management and redirection specialists?

 

Thanks in advance!

PurplePartner
Shopify Partner
193 18 33

I got it now, sorry for the misunderstanding. You're right here - even if you're using Shopify Markets, because you have only one Shopify account you'll be able to connect only 1 Stripe/ 1 PayPal account. 

 

That's because the Shopify account will be under the same entity, if that makes sense. I initially thought the only issue you're facing is related to the URL redirection, but that's my bad.

 

May I know why you can not use Shopify Payments, or why you need different Stripe accounts? Maybe I can come up with an idea. Thanks!

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
AndrijaCM
Tourist
3 0 1

Shopify Payments is region restricted so we can't use it. As for why we need different Stripe account is because of EU taxes and laws.