Hello, I am wondering if I am misunderstanding the Discounts API or app discount combinations.
I have created a function that returns product and order discounts, that are set to combine, but it seems that the order discounts do not combine with anything.
From this screenshot you can see an app discount titled “std” that is set to combine with product, order and shipping discounts, and another app discount titled “qty1” which is also set to combine with product, order and shipping discounts. Both of these discounts are handled by the same function “discount-function”.
The “std” discount when ran returns a product discount, whereas the “qty1” discount returns an order discount, and they work in isolation but do not combine.
However, the app product discount does combine with native order discounts (ordr1 is a native order discount).
Both app discounts are created with the same settings, and since the product discount combines with native order discounts I know that the combination settings are working. I checked the function logs and both function runs return the discounts correctly. So I am wondering if there is something I am missing about app discounts combining, as far as I can tell from the documentation it should be working. Any help would be greatly appreciated, thank you.