• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Shipping amount after free promo code applied

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We get the shipping amount from order.orderPriceInfo.shipping.... but once we apply free shipping promo code, this value becomes zero.

Can somebody tell me how to get shipping amount which was applicable to order object before free shipping promo code applied.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll have to give us more context about what you are dealing with.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"ndh aggarwal"

Please click on the "My Private Messages" link on top of this page, for a message from JavaRanch.
 
Nidhi Gaggarwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So get the shipping amount before applying the promo code...

 
Nidhi Gaggarwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to send this data to third party after free shipping promo code applied. So, getting this value before promo code applied does not make sense.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nidhi Gaggarwal wrote:I have to send this data to third party after free shipping promo code applied.


Would that not have been useful to tell us when you originally asked the question?

So, getting this value before promo code applied does not make sense.


But that's the problem you're asking us to solve.
 
Nidhi Gaggarwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic