discountAllocations not removed correctly from Storefront API?

When we remove a discount code with the Storefront Cart API, the line items will still have the discountAllocations applied in the response. However when to go to the Checkout link the discountAllocations is removed.

If we do anything after the discount code is removed the items discountAllocations are then properly removed (IE add another item to cart).

Is this a Bug with the CART API or are we incorrectly using the cartDiscountCodesUpdate mutation?

Heres the process we went through:

  1. Added a product discount code

  1. Then we removed the discount code. You can see that the line item still responds with the discountAllocations.

  2. Add quantity to the that line item. Responds with the discountAllocations now removed properly.

2 Likes

The problem still persists. Just noticed the same in our shop.
It was perfectly fine a few weeks ago.
Just for reference, to delete discounts - we updating cart discounts with an empty array.
And this doesn’t happen with discount codes with a fixed amount, only for percentage value.

1 Like

Hi @shawntaylor_1 , @Illia_Kovtun .. Shopify API-support here. I just wanted to update you that this issue is under investigation with our developer teams now. Thank you for bringing it to our attention. If its allowable to post an update on the progress on this here I will. Alternatively you can reference this forum post in any interaction you have regarding this with our Partner Support team going forward. Thank you again for taking the time with this.

Hi @KB77 ,

I have also run into this problem. Can you already give an update?

Kind regards,

Alex

2 Likes