I created two “Amount off products” discounts for a test product with the following configuration:
https://screenshots.ablecanyon.com/gnJ4gDBmnbP3WsNbKScj
In my theme, when I click the “Add to Cart” button, a JavaScript function adds custom options to the cart item using the following request:
fetch('/cart/add.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
quantity: 1,
id: v_ic,
properties: { '_custom_time': timestamp_r }
})
})
Everything works fine when I add a single etwet product to the cart. I can apply any of the discounts at checkout, and if I enter a different coupon, it replaces the previous one.
However, when I add a second etwet product to the cart (with a different _custom_time property) and try to apply both discounts simultaneously, it doesn’t work. Only one discount is applied at a time—entering a new coupon replaces the previous one.
Is there a way to apply both “Amount off products” discounts to the same product when it has different properties in the cart?
