Discount removing shipping costs - not showing in order adjustments
Description
I have a discount setup so that members with orders over $100 get free shipping. While this seems to work, there is no indication of the discount being applied to the order (it doesn't show up in the order adjustments). I would like to show the customer that they've been given the Free Shipping. Any advice on how I could detect that free shipping has been applied? I'm using the json data back from cart update actions, but the order adjustments are empty and I can't see how I could detect this by using the other cart data.
Could Shipping Methods have the same condition system as discounts - in particular the user group condition? Then at least it would show up in the order adjustments.
Additional info
- Craft version: 3.4.10.1
- Craft commerce: 3.0.11
We should add a zero value shipping adjustment for shipping that becomes free.
We are planning to add a way to see a list of the applied discounts to an order. With something like order.appliedDiscounts.
https://craftcms.stackexchange.com/questions/36123/free-shipping-discount-on-whole-order-doesnt-appear-as-adjustment