Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usps first class mail parcel returns 0 #256

Open
shahzebjaved23 opened this issue Mar 8, 2017 · 2 comments
Open

usps first class mail parcel returns 0 #256

shahzebjaved23 opened this issue Mar 8, 2017 · 2 comments

Comments

@shahzebjaved23
Copy link

shahzebjaved23 commented Mar 8, 2017

I have a spree app, using the spree_active_shipping gem. It uses following for shipping methods,

  • usps first class mail parcel,
  • usps priority mail
  • ups ground
  • ups three day select
  • ups second day air
  • usps priority express
  • usps next day air saver

all the methods calculated prices are correct, except the usps first class mail parcel service, which returns 0, I have selected the zone based in country, and selected united stated

Please let me know how to debug this issue, and how to log the api response that usps sends back. What can be the possible reasons for this ?

@cgcmart
Copy link

cgcmart commented Mar 9, 2017

app/models/spree/calculator/shipping/usps/base.rb needs to be updated.
Since the max_weight is determined at the calculator level, base.rb needs to compute max_weight(package) and make it a parameter that other calculators can process.

@shahzebjaved23
Copy link
Author

@99cm can you kindly specify exactly what updations need to be made in app/models/spree/calculator/shipping/usps/base.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants