Hi, we are seeking advice on how best to apply automatic discounts to products added to cart via an app-created bundle.
We are currently using the SC Product Options app to offer upsells on our products, such as adding customization to your hockey stick, getting your skates sharpened before they ship out, etc. This used to work well enough, with the upsells getting added as their own product lines. In scenarios where we want the upsell to be a free value add (ie with minimum value purchase), Shopify Automatic Discounts worked well enough.
With a recent app update, the upsells now come through as a bundled product. This is a bit slicker interface, and adds the value into one line item in the cart, with the upsells included. Post-purchase, the upsells come through as individual line items/skus, but in the cart/checkout they are presented as sub-items/a bundle, and Shopify Automatic discounts do not pick up on them. We think we should be able to make something work with a Script, but so far have not been able to get things quite right.
The two main scenarios we need discounts for are:
- a customer adds a Blackout stick to their cart, and opts for both a custom name and logo to be added. Individually the name and logo are $15 and $25, but we would like for it to be $30 to get both added.
- a customer adds a pair of skates over a minimum value to their cart, and elects to get them sharpened and profiled - these upsells should be included as a free value add.
How the stick looks in the cart:
At Checkout:
In the back end (currently priced at $15/$15 as the bundle doesn’t work):
We are thinking that a script that picks up on line item properties is the most likely solution, but haven’t been able to get it right. Any help we can get would be much appreciated. If we can dial in how to do the stick (title contains Blackout, line item properties contains custom name, line item properties contains custom logo, then discount product by $10), we should be able to adapt it for the skates as well, though that will also contain a minimum value qualifier.
Thanks!


