How to access orders from the last 60 days in liquid?

Shopify Partner
1 0 0

Hi all,


I am developing an app to display real time orders in front-end pages, so I want get orders in liquid files>
From some of document, it said we can get orders in last 60 days.

I tried to make 2 orders in my test store, tried to access and display in liquid file same as below but its not working.


{% for order in shop.orders.any %}
{{ }}
{% endfor %}


Could you tell me what is wrong or another way to do it?

I really appreciate if you can help me.


Khoa Hoang.

Replies 0 (0)