Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

khoahd1983
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 %}
{{ order.name }}
{% 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)