No longer able to retrieve {{ customer.orders_count }}

Topic summary

  • Issue: After recent Shopify Admin updates, the Liquid variable {{ customer.orders_count }} now always returns 1 instead of a customer’s total order count. It appears to count only “open” orders rather than full order history. The regression began the same day the Admin pages were updated last week.

  • Attempts/status: The original poster sought help and asked Shopify support but received no clear guidance. No workaround or fix is shared in the thread.

  • Impact: Breaks theme logic or any workflows that rely on an accurate per-customer order count.

  • Related Admin UX problems: Another merchant reports the Orders “Custom date” filter intermittently resets when entering the end date (switching away from Custom), causing delays and confusion.

  • Broader concern: Multiple merchants criticize insufficient testing and request better user input (e.g., polling) and QA before rolling out Admin changes.

  • Resolution: None to date. A participant asks if anyone has a solution; the discussion remains open and the core issue is unresolved.

Summarized with AI on January 21. AI used: gpt-5.

Since the recent updates to Shopify the {{ customer.orders_count }} is no longer working

It always returns (1) rather than the full number of orders - as if it can only retrieve ‘open’ orders - not the full list of past orders.

This stopped working on the same day that all the Shopify Admin pages were updated last week.

2 Likes

I’m not having this particular issue…just a general comment that when updates are made to Admin, please try to incorporate new changes that make life EASIER for our business. Maybe polls should be taken to see how people lookup info in Orders, Products, etc before they make changes they intend to be better…because they are NOT necessarily better or they don’t work right.

i.e. I’m in today trying to lookup orders for ONE month in April last year. When using the CUSTOM DATE option…I entered the begin date, went down to enter the end date, and the cursor jumps to the top and selects a different date method, instead of CUSTOM. At least I think this is what it did because it seemed to act differently each time. WE DON’T HAVE TIME TO DEAL WITH THIS!! What should have taken a minute or 2 to look up I am now so ticked that I stopped to complain here! Spent 15 mins searching the HELP site to try to enter something…but that is too perplexing.

If you want to make things better, get some input and the TEST that it works.

Sorry… just a vent…vent…vent day. Can’t get anything done consistently and quickly. So frustrating.

I hear you… It is so frustrating for our Businesses to be used as the Functional Testers for such a big Tech company like Shopify.

I still have no idea how to solve the issue of the {{ customer.orders_count }} not working. Despite direct questions to Shopify tech support.

We have been using shopify since 2016. Lack of proper testing has always been a weakness for shopify unfortunately.

Has anyone found a solution to this issue?