All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Our store has multiple locations and there are multiple domains pointing to their respective locations.
Like we have stores for US, UK and Canada. We have respective domains for each of them.
US domain is the primary domain.
Here's the problem, when a user form UK clicks on Forgot Password and got their Reset Password email, the link in the email is pointing towards US domain which is the primary one.
How to get the relative link in the email like UK link for UK user?
Solved! Go to the solution
This is an accepted solution.
IMO shopify always uses your primary domain for password reset links ,even for international customers. There is currently no way to generate market-specific reset links in the native emails.
Workaround Suggestion- add a helpful note in the email body like this
<p>If you’re visiting us from the UK or Canada, this reset link may direct you to our U.S. site. After resetting your password, you can return to your local store:</p>
<ul>
<li><a href="https://yourstore.co.uk">UK Store</a></li>
<li><a href="https://yourstore.ca">Canada Store</a></li>
</ul>
Go to Settings → Notifications → Customer notifications → Customer account reset → Find {{ email_action_url }} → Add the above note
This is an accepted solution.
IMO shopify always uses your primary domain for password reset links ,even for international customers. There is currently no way to generate market-specific reset links in the native emails.
Workaround Suggestion- add a helpful note in the email body like this
<p>If you’re visiting us from the UK or Canada, this reset link may direct you to our U.S. site. After resetting your password, you can return to your local store:</p>
<ul>
<li><a href="https://yourstore.co.uk">UK Store</a></li>
<li><a href="https://yourstore.ca">Canada Store</a></li>
</ul>
Go to Settings → Notifications → Customer notifications → Customer account reset → Find {{ email_action_url }} → Add the above note
Thanks for the quick reply @lixonic ,
Is there any way to get the user domain in the password reset email. I'm using {{shop.url}} to link the logo to user specific domain, but it's always pointing to primary one.