I have an Order Discount function that should make a product free when an order subtotal reaches a certain amount. It seems to be working only when the product in the Targets list reaches that amount rather than the order subtotal reaches that amount.
In other words, I get one of the products free when I add enough quantity of that product to the cart to reach the minimumAmount. In this example, the product that I should get free costs $15. I have to have 7 of them in my cart (to reach $105) in order for the discount of $15 to show.
This feels like a bug but if I’m not doing something right, please advise.
No discount:
Discount applied:
The output is the same for both cases.
Output:
{
"discounts": [
{
"conditions": [
{
"orderMinimumSubtotal": {
"excludedVariantIds": [],
"minimumAmount": 100,
"targetType": "ORDER_SUBTOTAL"
}
}
],
"targets": [
{
"productVariant": {
"id": "gid://shopify/ProductVariant/47951110537531",
"quantity": 1
}
}
],
"value": {
"percentage": {
"value": 100
}
}
}
],
"discountApplicationStrategy": "FIRST"
}

