Automatic Shipping Discounts Don't Apply When Bundled Products are in cart
complete
S
Seun Oyebode
When the discount logic criteria are fulfilled and Bundle products are included in the cart lines, automatic shipping discounts fail to apply.
PS: This is a bug on Shopify's end. We've reported it to Shopify, and they assured us they are working on it. However, there is no definitive fix date. We are just tracking it publicly.
Tobe Osakwe
complete
We were able to come up with a workaround after all.
Technical details:
input.deliveryGroups.cartLines
is broken for shipping discounts in the Shopify Shipping Discount Functions API, so we are simply no longer using it. Instead, we will always rely on input.cart.lines
. This way, we can detect the bundle product.We don't know if Shopify will ever fix the bug at the core of this, but you no longer need to wait for that to happen. :)
This is live now.
Tobe Osakwe
Due to the spike in recent reports of this issue, we will take this one step further and open a thread in Shopify's new developer forums to put this on Shopify's radar again.
I doubt we are the only app encountering this, so hopefully other developers will end up chiming in as well.
Tobe Osakwe
Here is the thread: https://community.shopify.dev/t/shipping-discount-functions-cant-see-bundled-products-in-the-cart/3672
Hoping someone from Shopify will chime in and explain.