<p>For anyone else viewing this question - until there is a zero value adjuster as mentioned by Luke, my solution has been to simply do the discount checks in my custom module.</p>
<p>A little messy but it'll do the job for now.</p>

CC BY-SA 4.0
2020-09-07T00:49:20.423Z
2020-09-07T00:49:20.423Z
Emily Fitton
<p>TL;DR : Free shipping on order discounts don't appear as a discount (or any type of) adjuster. So how do I check if a free shipping discount has been applied?</p>
<p>Sorry for the long post - hopefully it explains what I'm trying to achieve!</p>
<p>I have a custom module that shows and hides shipping options depending on a few factors.</p>
<p>At the moment the client has a discount that allows Free Shipping on all orders over $200. They have set this up and ticked the &quot;Remove all shipping costs from the order&quot;</p>
<p><a href="https://i.sstatic.net/gFPVg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gFPVg.png" alt="Discount Free shipping" /></a></p>
<p>This is working well and no shipping is being applied correctly at the right time. However the only thing that shows you have free shipping is that the shipping price is 0.
To make it clearer to the user I'd like to display a notice to show they are getting free shipping. I can't do this using the shipping total as that may be zero simply because they haven't selected anything yet.</p>
<p>So my idea was that I could use the adjusters to check if the discount was being applied, but this type of discount doesn't seem to appear in the list of adjusters. Here are a couple of scenarios where I have listed all adjusters:</p>
<p>1.) Order with normal shipping applied: - shipping and tax adjusters applied.</p>
<p><a href="https://i.sstatic.net/S3HYz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/S3HYz.png" alt="normal order" /></a></p>
<p>2.) Order over $200 (free shipping) - only tax adjuster applied.</p>
<p><a href="https://i.sstatic.net/Fabqv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Fabqv.png" alt="free shipping on order" /></a></p>
<p>3.) Order over $200 (free shipping) and 10% discount applied.</p>
<p><a href="https://i.sstatic.net/zpTh1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zpTh1.png" alt="Free shipping and discount" /></a></p>
<p>So my question is how do I detect that a free shipping discount has been applied to an order? Should the discount appear as an adjuster? Is there a different way to detect what discounts have been applied?</p>
<p>Thanks</p>

CC BY-SA 4.0
2020-09-01T06:53:43.287Z
Relevant: https://github.com/craftcms/commerce/issues/1329
Luke Holder
CC BY-SA 4.0
2020-09-01T06:54:17.430Z
We need to implement a zero value adjuster in the shipping adjuster, or add the appliedDiscounts feature to orders.
Luke Holder
<plugin-craftcommerce><plugin-craftcommerce3><shipping><adjusters>
Free shipping discount on whole order doesn't appear as adjustment
# Free shipping discount on whole order doesn't appear as adjustment

(Asked by: username_0 on 2020-09-01)

TL;DR : Free shipping on order discounts don't appear as a discount (or any type of) adjuster. So how do I check if a free shipping discount has been applied?

Sorry for the long post - hopefully it explains what I'm trying to achieve!

I have a custom module that shows and hides shipping options depending on a few factors.

At the moment the client has a discount that allows Free Shipping on all orders over $200. They have set this up and ticked the "Remove all shipping costs from the order"

[![Discount Free shipping](https://i.sstatic.net/gFPVg.png)](https://i.sstatic.net/gFPVg.png)

This is working well and no shipping is being applied correctly at the right time. However the only thing that shows you have free shipping is that the shipping price is 0.
To make it clearer to the user I'd like to display a notice to show they are getting free shipping. I can't do this using the shipping total as that may be zero simply because they haven't selected anything yet.

So my idea was that I could use the adjusters to check if the discount was being applied, but this type of discount doesn't seem to appear in the list of adjusters. Here are a couple of scenarios where I have listed all adjusters:

1.) Order with normal shipping applied: - shipping and tax adjusters applied.

[![normal order](https://i.sstatic.net/S3HYz.png)](https://i.sstatic.net/S3HYz.png)

2.) Order over $200 (free shipping) - only tax adjuster applied.

[![free shipping on order](https://i.sstatic.net/Fabqv.png)](https://i.sstatic.net/Fabqv.png)

3.) Order over $200 (free shipping) and 10% discount applied.

[![Free shipping and discount](https://i.sstatic.net/zpTh1.png)](https://i.sstatic.net/zpTh1.png)

So my question is how do I detect that a free shipping discount has been applied to an order? Should the discount appear as an adjuster? Is there a different way to detect what discounts have been applied?

Thanks

**Tags:** plugin-craftcommerce, plugin-craftcommerce3, shipping, adjusters

> **Comments:**
> **username_1**: Relevant: https://github.com/craftcms/commerce/issues/1329  
> **username_1**: We need to implement a zero value adjuster in the shipping adjuster, or add the appliedDiscounts feature to orders.  

---

## 1 answers

### Answer by username_0 on 2020-09-07. Score: 1

For anyone else viewing this question - until there is a zero value adjuster as mentioned by Luke, my solution has been to simply do the discount checks in my custom module.

A little messy but it'll do the job for now.


---

