Is there a way to get, or calculate, the amount left to reach free delivery when having a discount of type free delivery in combination with a cart threshold?
Maybe one solution could be to get all discounts and then do some checks, but I haven’t found a way to get all discounts. The DiscountService has a get-method, but it needs the discount id. In this case we know that we want to find a discount of type free delivery, but we don’t know the id.
Has anyone implemented something similar, or knows if there is a convenient way to get all discounts or discounts of a specific type?
Litium version: 8.23.3