Description
Please list the package(s) involved in the issue, and include the version you are using
@shopify/[email protected]
Describe the bug
Reposting from https://community.shopify.dev/t/major-bug-calling-bulkupdatecart-should-not-remove-turn-off-automatic-discounts/9940
Hi, I’m making use of the new bulkUpdateCart released in the 2025-01 update to automatically add free gifts based on what’s currently in the cart. The new bulkUpdateCart function works BUT it will always turn off Automatic discounts after the function is called.
I don’t think there’s any valid reason for automatic discounts to be turned off so I believe this is a major bug.
This bug makes the new bulkUpdateCart totally unusuble for my use case because I have an automatic product discount that checks for the _gwp cart line item property and applies a 100% discount automatically.
Steps to reproduce the behavior:
- Turn on automatic discounts
- Call the bulkUpdateCart function
- An alert message appears saying that Automatic discounts have been removed.
Expected behavior
Automatic discounts should not be turned off when bulkUpdateCart is called.