password

The password template renders the password page, which is a landing page shown when you add password protection to your online store. This page includes a message, editable by merchants, and the password form for customers to gain access to the shop.

The password message

When password protection is enabled on a store, there's also the option to include a message. This message can be shown using the password_message attribute of the Liquid shop object:

The password form

The password form can be added with the Liquid form tag and accompanying 'storefront_password' parameter. Within the form tag block, you need to include an <input> with the following attributes:

  • type="password"
  • name="password"

For example:

The email sign-up form

You can include an email sign-up form, to capture customer emails, with the Liquid form tag and accompanying 'customer' parameter. Within the form tag block, you need to include the following inputs:

Input type name value
Tags hidden contact[tags] prospect, password page
Email email contact[email] -

For example: