Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
We have some free samples that we want to add to orders where the following conditions are met:
I can get #2 working, but not #1
Any suggestions would be greatly appreciated.
Thanks!
If you need to aggregate data to use in a condition, use Run code. We have a repo with example code. This example sums the number of products that match a title.
https://github.com/Shopify/flow-code-examples/tree/main/run-code-examples/order-sum-products
Hi Paul_n
Thanks for your response, however, I'm not even sure where to start with this. I've looked and can't see anything in the "Check if..." > Order step in Flow called "Run code". I've even skipped the conditions and looked at the action step and cannot find "Run code" there either. The information in Shopify Help for "Run code" doesn't clarify how or where to implement this either. Are there any resources or tutorials that would explain how to actually implement this? Thanks.
There is a "Run code" action. Add it as a new step before your condition. You can check the output in your condition, if needed.
Thanks!
If you need any help with the run code step, let me know.
I can use some help. I never used "Run Code" in flow. Some of our products are tagged with something like "ddd". I need to know whether 2 or more "ddd" tagged units were ordered of one sku or combined 2 pieces of "ddd" tagged products from multiple skus. So the trigger condition might be either 2 or more of the same tagged sku or at least 1 piece each of 2 or more tagged skus.
I can help on a paid basis if that's of interest. The link to my rates and payment options are in my signature.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024