如何从 Shopify 中客户的 Phone 字段中获取值?
How to get value from customer's Phone field in Shopify?
我想在 shopify 注册表中为 phone 创建一个字段。所以我在 register.liquid:
写了下面的代码
<label for="phone" class="label--hidden">Phone Number</label>
<input type="text" value="" name="customer[phone]" id="phone" class="phone" placeholder="Phone"/>
但是当我通过 shopify api 获取所有客户数据时,所有客户的 phone 字段为空。我检查了文档,但没有找到任何有用的信息。谢谢
使用note
字段:
<input type="text" name="customer[note][Phone]" placeholder="Phone"/>
无法使用注册表将其直接保存到客户的 phone
字段中。
我想在 shopify 注册表中为 phone 创建一个字段。所以我在 register.liquid:
写了下面的代码 <label for="phone" class="label--hidden">Phone Number</label>
<input type="text" value="" name="customer[phone]" id="phone" class="phone" placeholder="Phone"/>
但是当我通过 shopify api 获取所有客户数据时,所有客户的 phone 字段为空。我检查了文档,但没有找到任何有用的信息。谢谢
使用note
字段:
<input type="text" name="customer[note][Phone]" placeholder="Phone"/>
无法使用注册表将其直接保存到客户的 phone
字段中。