Add a contact form to your theme
You can add a contact form to your theme to allow customers to get in touch with the merchant.
You can add this form with the Liquid form tag and accompanying
'contact' parameter. Inside the form, you can include two different input types:
The following is an example of the form with both of the above input types:
The following inputs are required for the form to submit successfully:
The optional inputs can be any HTML input type. They need to have an attribute of
information_id briefly identifies the information that you're collecting. These titles appear in contact notifications, and must be unique within the form.
Below are examples of input types that you might want to add to your form.
To accept multiple selections, each input in a checkbox group needs to have a unique
name value. If you don't use a unique
name value for each input, then the form will only return the last value that was selected.