Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi All,
We need to add a free item if the order contains a line item with a Subscription (selling plan)
I can't figure out the condition for this, can you please help.
The below condition work for all variants with the selling plan, even if the item is a one-time purchase in the order.
But I need it to run if only the line item is added to use with subscription.
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hey Nalinda - we've had success doing this with merchants by checking that a contract exists on any of the lines:
Or you could use Awtomic Subscriptions which provides subscription specific Shopify Flow actions and triggers. In this case you'd use one of our "Subscription Billing Attempt Success" triggers. From there you could add an item to the order or use one of our actions to update the contract (like add a discount or free one time item)
Hi Nalinda,
Have you tried just looking at whether `order.sellingPlans` is empty? Looking at the Product's Selling Plan Groups is not relevant to the specific order whereas `order.sellingPlans` should be.
Something like this might be worth trying:
Hope that helps!
This is an accepted solution.
Hey Nalinda - we've had success doing this with merchants by checking that a contract exists on any of the lines:
Or you could use Awtomic Subscriptions which provides subscription specific Shopify Flow actions and triggers. In this case you'd use one of our "Subscription Billing Attempt Success" triggers. From there you could add an item to the order or use one of our actions to update the contract (like add a discount or free one time item)
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