Css Shopify用户注册表单的自定义字段

Css Shopify用户注册表单的自定义字段,css,meta-tags,shopify,liquid,liquid-layout,Css,Meta Tags,Shopify,Liquid,Liquid Layout,我找不到任何关于如何为用户注册论坛添加自定义字段的文档,因此我尝试了一些方法,但没有成功: <div class="single-full-width customer"> <div class="login"> {% form 'create_customer' %} {% if form.errors %} {% for field in form.errors %}

我找不到任何关于如何为用户注册论坛添加自定义字段的文档,因此我尝试了一些方法,但没有成功:

<div class="single-full-width customer">
    <div class="login">
        {% form 'create_customer' %}
            {% if form.errors %}
                {% for field in form.errors %}
                    <p class="input-error-wrapper"><span>{{field}} {{ form.errors.messages[field] }}</span></p>
                {% endfor %}
            {% endif %}
            <p>
                <label>First Name:</label>
                <input type="text" value="" name="customer[first_name]" class="input-text-1" />
            </p>
            <p>
                <label>Last Name:</label>
                <input type="text" value="" name="customer[last_name]" class="input-text-1" />
            </p>
            <p>
                <label>Email Address:</label>
                <input type="text" value="" name="customer[email]" class="input-text-1" />
            </p>

            <p>
                <label>Password:</label>
                <input type="password" value="" name="customer[password]" class="input-text-1" />
            </p>

            <p>
                <label>Pet Name:</label>
                <input type="text" value="" name="customer[pet_name]" class="input-text-1" />

                <input type="radio" name="customer[pet]" value="cat">Cat
                <input type="radio" name="customer[pet]" value="dog">Dog
            </p>

            <p class="sign-in">
                <label></label>
                <a href="#" class="button-1 custom-font-1 trans-1 form-submit-btn"><span>Register</span></a>
                <b>or <a href="{{ shop.url }}">Return to store</a></b>
            </p>
        {% endform %}
    </div>

{%form'创建客户'%}
{%if form.errors%}
{%form.errors%}

{{field}{{form.errors.messages[field]}

{%endfor%} {%endif%} 名字:

姓氏:

电邮地址:

密码:

宠物名: 猫 狗

{%endform%}
我添加的字段是文本输入-宠物名和猫/狗的广播框。 我使用了一个测试帐户,但输出结果是没有保存任何内容。我使用{{customer.pet_name}}尝试获取保存的值,但没有得到任何回报。
有什么建议吗?谢谢

将您的宠物名保存在标签或便条中,因为这些都是为客户准备的。pet_name显然不是客户字段

<p>
  <label>Pet Name:</label>
  <input type="text" value="" name="customer[note]" class="input-text-1" />
  <input type="radio" name="customer[tags]" value="cat">Cat
  <input type="radio" name="customer[tags]" value="dog">Dog
</p>

宠物名:
猫
狗


你能给我链接一些关于如何做到这一点的信息吗?我找不到muchI讨厌再次打扰你,但我如何才能返回值?{{customer.note}}和{customer.cat}{{{customer.note}和{{{customer.tags}我不知道为什么,但是{{customer.note}没有返回任何内容。但是如果我进入管理面板,我可以看到客户的说明。你是对的。您不能在商店的前端使用customer.note。它不可用。它是供私人使用的。你可以使用一个应用程序来接受新的客户注册,并将便笺转换为一个对客户可见的元字段,或者我不知道。。。你不使用应用程序就进入了一个太过定制的领域。