Shopify创建客户表单中不需要输入密码字段

时间:2017-05-09 18:36:13

标签: javascript html shopify liquid

我正在尝试在我的shopify商店创建一个收集电子邮件地址和“目标”的商店,但我相信shopify的默认功能需要密码才能为shopify商店创建帐户。我想绕过密码要求。到目前为止,我已粘贴了我所拥有的内容,任何帮助都会令人惊叹。

{% form 'create_customer' %}
   {{ form.errors | default_errors }}
      {% if form.posted_successfully? %}
         <script>
            window.location = "https://www.thankyoupage";
          </script>
      {% endif %}

   <div class="clearfix large_form">
       <label for="email" class="login">Email Address</label>
       <input type="email" value="" name="customer[email]" id="email" class="large" size="30" />
   </div>
   <div class="clearfix large_form">
      <label for="goal">Goal </label>
      <select name="customer[note][Goal]" id="goal">
          <option value=""></option>
          <option value="Lose Weight">Goal 1 </option>
          <option value="Eat Healthy">Gaol2</option>
          <option value="Peak Performance">Goal 3</option>
      </select>
    </div>
     <div class="clearfix large_form" style="display:none;">
        <label for="password" class="login">Password</label>
        <input type="password" value="" name="customer[password]" id="password" class="large password" size="30" is_required="0" />
      </div>
      <button type="submit" value="Create">Get Started</button>
 {% endform %}

1 个答案:

答案 0 :(得分:0)

如果使用默认(随机)值预填字段,则应满足表单检查要求。