REFRESH theme with subscriptions app - login redirects to orders page

REFRESH theme with subscriptions app - login redirects to orders page

jcestlin
Visitor
1 0 0

I'm using the REFRESH theme and have installed the subscriptions app. On login, I'd like for the user to be directed to the Shop main page, but they are currently directed to the Orders page.  I've tried:

  • on header.liquid:   

<div class="account-menu"> <a href="/account/login?return_to=/collections/all" class="menu-item">Log In</a> <a href="/account/register" class="menu-item">Register</a> </div>

 

and 

 

<div class="account-popup" id="accountPopup">
{% if customer %}
<div class="account-menu">
<div class="account-header">
<p>Hello, {{ customer.first_name }}!</p>
</div>

<div class="menu-section">
<a href="/collections/all" class="menu-item">
<span class="icon">🛍️</span>
Shop
</a>
<a href="/account/orders" class="menu-item">
<span class="icon">📦</span>
Order History
</a>
</div>

{% if customer.tags contains 'active_subscriber' %}
<div class="menu-section member-section">
<h4>Member Access</h4>
<a href="/pages/members-video" class="menu-item">
<span class="icon">🎥</span>
Video Library
</a>
</div>
{% endif %}

<div class="menu-section">
<a href="/account/logout" class="menu-item logout">
<span class="icon">↪️</span>
Log Out
</a>
</div>
</div>
{% else %}
<div class="account-menu">
<a href="/account/login?return_to=/collections/all" class="menu-item">Log In</a>
<a href="/account/register" class="menu-item">Register</a>
</div>
{% endif %}
</div>

 

  • on main-login.liquid   

 

<input type="hidden" name="return_to" value="/collections/all" />

and 

<div class="account-menu">
<a href="/account/login?return_to=/collections/all" class="menu-item">Log In</a>
<a href="/account/register" class="menu-item">Register</a>
</div>

 

I can see that it flashes  the shop page for a milli-second , but then goes to orders - something is still redirecting it. Anyone know what that might be or where I can look? 

Reply 1 (1)

abdulmoeed37
Shopify Partner
119 11 11

Hi @jcestlin ,

 

Have you tried to redirect it using javascript?

Helping shopify store owners.
Schedule free meeting for shopify store related problems:
If you need assistance with your store, feel free to contact me at abdulmoeed37@gmail.com
If my assistance was helpful, please consider liking and accepting the solution. Thank you!