Site Sections: Satchmo Main | Wiki | Demo Store |

Ticket #363 (closed enhancement: fixed)

Opened 7 months ago

Last modified 1 month ago

USPS Shipping Module

Reported by: wheaties.box Assigned to: chris
Priority: major Milestone: 0.8
Component: Application Version:
Keywords: shipping module usps Cc:

Description

I've been working on a USPS shipping module for Satchmo for a few days. I think it's working and ready for some intense review. Upon examination, you'll noticed that I based it off the UPS module. I hope you guys like it!

Attachments

usps.patch (16.9 kB) - added by wheaties.box on 05/05/08 21:50:03.
The patch for the USPS shipping module
satchmo-usps.tar.gz (5.7 kB) - added by wheaties.box on 09/01/08 04:34:02.
The entire USPS shipping module

Change History

05/05/08 21:50:03 changed by wheaties.box

  • attachment usps.patch added.

The patch for the USPS shipping module

06/14/08 15:42:53 changed by chris

  • milestone set to 0.8.

09/01/08 04:33:35 changed by wheaties.box

We've made several improvements to this module over the past while, and our customers seem to be quite satisfied with it. After a short chat with Chris, I was unclear as to whether a diff or a straight copy of our code would be better--I'm going with a straight copy out of pure laziness. Please don't hate me for it :)

09/01/08 04:34:02 changed by wheaties.box

  • attachment satchmo-usps.tar.gz added.

The entire USPS shipping module

10/05/08 21:58:44 changed by chris

  • status changed from new to closed.
  • resolution set to fixed.

Added in [1594] Needs more robust testing but I'll go ahead and close the ticket.

10/05/08 23:18:34 changed by wheaties.box

I just tested this with both domestic and international shipping using satchmo trunk and django trunk. The rates returned were consistent with the rates displayed on usps.com.

A few things to take note of:

  • the USPS API won't return shipping rates if you are trying to go against the testing server, so a couple of the settings in modules/config.py become useless and confusing
  • make sure your products have weights associated with them. the USPS API won't accept weightless packages and your list of shipping options might not be a list at all!
  • the module assumes that the value entered in a product's "weight" attribute is in pounds (because that's what USPS expects--pounds and ounces)
  • some rates such as parcel post automatically include the "additional postage may apply" values, and according to my exchanges with the USPS support crew, we just have to deal with it

I think that's about it!

10/24/08 03:44:04 changed by wheaties.box

  • status changed from closed to reopened.
  • resolution deleted.

I just tried to use the USPS shipping module on a fresh host. It appears that the templates have been omitted from the commit.

10/24/08 03:45:16 changed by wheaties.box

  • status changed from reopened to closed.
  • resolution set to fixed.

bah... nevermind. I'm an idiot.