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

  1. From your Shopify admin, click Online Store, and then click Themes (or press G W T).

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

  3. 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
  4. 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" />
  5. For value, type in the URL of the page where you want your customer to land once logged-in successfully.

  6. Click Save.

Want to discuss this page?

Visit the Shopify Community