Code to add total order count to Shopify Order Printer Template

Topic summary

A user seeks to display the total number of orders a customer has placed within their Shopify Order Printer template.

Solution Provided:

  • Use the Liquid code: {{ order.customer.orders_count }}
  • This variable accesses the customer object’s order count property
  • Official Shopify documentation link provided for reference

Status: Resolved with a direct code solution

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

I’d like to find out how to add the total customer order count to my order printer template, please. Does anyone have the

{{ order.customer.orders_count }}

https://shopify.dev/docs/api/liquid/objects/customer#customer-orders_count