I'm customizing a Shopify site for a client running a membership-based site.
The way they want the membership to work is that each member gets 3 items at a discounted rate every month, and then every subsequent product ordered is at the regular rate.
I've figured out how to limit the amount of discounted products ordered PER order, but what I can't figure out is how to use Shopify's API to query that customer's order history so I can see how many products a member has ordered each month and adjust the prices as needed (I'm using the Customer Pricing plugin to manage the pricing discounts currently).
I've been digging into the Liquid documentation, and I can see where there are tags for orders and tags for customers but not necessarily how to loop them together.
Is there anyone who is more familiar with the Shopify API than I am able to point me in the right direction?