Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shipping amount after free promo code applied

 
Nidhi Gaggarwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to give us more context about what you are dealing with.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic