Add a contact form in Shopify

Add a contact form to your theme to allow customers to get in touch with the merchant.

{% form 'contact' %}
  {{ form.errors | default_errors }}
  <div class="first-name">
    <label for="first-name">First name</label>
    <input type="text" name="contact[first_name]" id="first-name" />
  <div class="last-name">
    <label for="last-name">Last name</label>
    <input type="text" name="contact[last_name]" id="last-name" />
  <div class="phone">
    <label for="phone">Phone</label>
    <input type="tel" name="contact[phone]" id="phone" />
  <div class="email">
    <label for="email">Email</label>
    <input type="email" name="contact[email]" id="email" />
  <div class="order-number">
    <label for="order-number">Order number</label>
    <input type="text" name="contact[order_number]" id="order-number" />
  <div class="message">
    <label for="message">Message</label>
    <textarea name="contact[body]" id="message"></textarea>
  <div class="submit">
    <input type="submit" value="Create" />
{% endform %}