I am involved in developing an e-commerce site. There I require to get shipping amount which was applicable before free shipping promo code was applied. Once we apply free shipping promo code, the conventional way of getting shipping amount gets 0.
Ok good... if this information is useful to you...
As said by you, So get the shipping amount before applying the promo code... this does not make sense, I meant to say this
to Summarize, I have to send the following data to third party:
shipping discount which we got after applying free shipping promo code.
I hope now it makes a clear picture of the requirement.
And I'm saying that if you get invalid/inappropriate data the way you're doing it now, do it in a different order, or change the nature of the requirement.
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards