Hi guys,
I’m making a product discount extension to implement our volume discounts for our customers.
The extension is working properly if there is only 1 product in cart, in the other case, no discount is being applied to the customers’ cart.
Let me show the JSON of extension result here:
[
{
"targets": {
"productVariant": {
"id": "gid://shopify/ProductVariant/39525478039613"
}
},
"value": {
"percentage": {
"value": "5.00"
}
},
"message": "Spectra Precision Laser Offer"
},
{
"targets": {
"productVariant": {
"id": "gid://shopify/ProductVariant/40434930679869"
}
},
"value": {
"percentage": {
"value": "5.00"
}
}
}
]
The extension is expected to apply 2 discounts on 2 different variants.
But no discount works at all, if I remove one of the product, there will be a discount applied then.
Screenshots:
- When a single product in cart
- Multiple products with multiple discounts returned from the extension
Please help to resolve the issue,
Thank you guys so much

