Skip to main content

login_button

shop | login_button
returns string

Generates an HTML Button that enables a customer to either sign in to the storefront using their Shop account or follow the shop in the Shop App.


Note

The presence of the shop object is required for validation purposes only.


shop | login_button: action: string

Controls the behavior of the button after authentication.

Accepts the following values:

  • default - Authentication only
  • follow - Performs a side-effect after authentication which follows the current shop in the Shop app. Requires additional configuration. Learn more
{{ shop | login_button: action: 'follow' }}
Was this page helpful?