File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Shipping amount after free promo code applied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Shipping amount after free promo code applied" Watch "Shipping amount after free promo code applied" New topic
Author

Shipping amount after free promo code applied

Nidhi Gaggarwal
Greenhorn

Joined: May 17, 2010
Posts: 4
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

Joined: Jul 20, 2005
Posts: 10290
    
168

You'll have to give us more context about what you are dealing with.

[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168

"ndh aggarwal"

Please click on the "My Private Messages" link on top of this page, for a message from JavaRanch.
Nidhi Gaggarwal
Greenhorn

Joined: May 17, 2010
Posts: 4
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

Joined: Sep 29, 2008
Posts: 12617

So get the shipping amount before applying the promo code...

Nidhi Gaggarwal
Greenhorn

Joined: May 17, 2010
Posts: 4
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: May 17, 2010
Posts: 4
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

Joined: Sep 29, 2008
Posts: 12617

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Shipping amount after free promo code applied