Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
When a customer logs in, it takes them to the Order History page, /account. Is there a way to change the destination when they click the Sign In button? I want to send them to a Collection page instead. I think the code would be in customers/login.liquid.
Hi @tmpulido ,
Go to online-store - > edit theme
search for main-login.liquid and find code
{%- form 'customer_login', novalidate: 'novalidate' -%}
now put the below line just after the above code
<input type="hidden" id="checkout_url" name="checkout_url" value="/">
value="/" refer to homepage here you can provide any URL.
Hope it helps...
Thanks for the response. I don't have a main-login.liquid file, but I do have customers/login.liquid.
I found the line {% form 'customer_login' %}, but no , novalidate: 'novalidate' -%}.
I added the following line above that line....
<input type="hidden" id="checkout_url" name="checkout_url" value="/collections/wholesale">
... but it still takes me to the Order Summary and not the wholesale collection page.
Thanks
Would you mind sharing the store URL and password?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025