Redirect customers to a new page when they log in to their account

  1. Find the theme you want to edit, click Actions, and then click Edit HTML/CSS.

  2. Under the Templates folder, locate and click on the customers/login.liquid file to open it in the online code editor.

    If the file does not exist, click the Add a new template link. In the drop-down menu, select customers/login. Click Create template.

    Customer login
  3. In the online code editor, look for this line of code:

    {% form 'customer_login' %}

    Create a new line just below and add this:

    <input type="hidden" name="checkout_url" value="/pages/special-page" />
  4. For value, type in the URL of the page where you want your customer to land once logged-in successfully.

  5. Click Save.

Want to discuss this page?

Visit the Shopify Community