I asked a similar question some time ago and just added our solution for this problem in that thread, you can find the thread here: https://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2017/9/how-to-fetch-and-display-discounted-shipping-price-before-the-shipping-method-has-been-selected/. We're still on version 10 of commerce but hopefully this can be helpful for you anyway.
Thanks Martin I appricate the response I'll have a look through the solution hopefully it will solve the issue as IMO it's a pretty common requirement :-)
Thanks this code worked exaclty as I hoped, thanks for your help :-)
As there any way to predicate the discount rate of a shipping rate prior to selecting it?
We have the following scenario
We are currently calling the below
And then checking the SavedAmount for each of our ShippingMethods contained within these rewards to work out the discount cost or if it's free.
However this evaluation only applies if the shipping method has been selected before calling the code and as this is the point at which we are presented those options what we want to be able to for the collection of Rewards which has been returned as attached to the basket evaluate which this discout will be when it is selected.
Is there anyway of getting what the discount will be without the option being prior selected in the Cart?