App reviews, troubleshooting, and recommendations
If customer.lastOrder doesn't return the last order, and a get order data query includes the order that triggered the flow, how do I get the customer's previous order?
I have tried getting the last 2 orders from a get order data query, but I don't know how to skip the first entry, and I have tried editing the query to change "now" to something like "1 hour" but it doesn't work. Here is the query:
customer_id:{{order.customer.legacyResourceId}} AND created_at:>='{{ "now" | date_minus:"1 day" }}'
If I can get the query to return results that skip the last few minutes up to X days, it should work.
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025