特定客户的Shopifie订单计数
我尝试在脚本标签中使用{{customer.orders_count}}的{{customer.orders_count}}以获取Cutomer下达的订单总数。但是我每次都会获得“ 0”作为输出。有人可以帮我解决这个问题吗?
I tried using {{customer.orders_count}} in my script tag to get the total number of orders placed by a cutomer. But I am getting '0' as an output everytime. Can anyone please help me with this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
那是我将使用的基本清单。用问题回答问题。有时唯一要走的方法。
That is the basic checklist I would use. Answering a question with questions. The only way to go sometimes.
尝试
{{customer.orders.size}}
try
{{ customer.orders.size }}
这将在您的
< script>
中起作用。this would work in your
<script>
在使用测试费用时,将“ 0”作为{customer.orders_count}}的{{customer.orders_count}}的输出是典型的。在实时商店中,订单计数准确地反映了实际订单。
看看这个应用程序:
根据客户订单计数,支出和营销订阅过滤内容交付。
https://apps.shopify.com/dynamic-segment-segment-semtions
Getting '0' as the output for {{customer.orders_count}} in a Shopify development store is typical when using test charges. In live stores, the order count accurately reflects real orders.
Take a look at this app:
Filtered content delivery based on customer order count, spending, and marketing subscriptions.
https://apps.shopify.com/dynamic-segment-sections