Hej,
I have a code segment which is used to add a custom discount orderline to the current cart.
It worked before, but doesn't work now.
The "Total Discount" order line can't be found from the database.
I can't see the problem, is there anyone can find the reason?
I have tried to change the type from "discount" to "product", and added productID, it works fine.