Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi there,
I want to calculate 12-months-sales-amount and 12-month-order-count and write it to the corresponding customer metafields. Based on that calculation I want to add customer classification tags based on a fixed rule-set.
Trigger clearly is the order created. But what then?
What Action to take? How to query and set variables and then write these variables into metafield values?
Thankful for any hints on that.
🤙
There are a few fields on the Customer object that may help you achieve your goals here:
Otherwise, you might be able to calculate the rolling 12-month amount spent and number of orders by using a Get order data action with a query limited to the specific customer and date range and then a Run code action to calculate the resulting values to include in the Update customer metafield action.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025