Retail hardware, software, and Shopify Point of Sale
I have a custom POS UI App which adds a line item discount to the cart.
It recently stopped working, and I can't figure out why. It's not throwing any errors, but the discount just doesn't apply to the cart any more.
Code looks like this
api.cart.setLineItemDiscount(lineItem.uuid, 'FixedAmount', 'Offer Title', '10').then(()=>{
api.toast.show('Discount applied');
});
I'm using
"@shopify/app": "3.58.2",
"@shopify/cli": "^3.66.1",
"@shopify/ui-extensions-react": "^2025.1.3"
I've tested the cart level discount - and that still works correctly. It seems like it's only the line item discounts that are affected.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025