Spree Fulfillment

SpreeFulfillment is a spree extension to do fulfillment processing via Amazon when a shipment becomes ready.

The extension adds an additional state to the Shipment state machine called ‘fulfilling’ which acts as the transition between ‘ready’ and ‘shipped’. When a shipment becomes ‘ready’ it is eligible for fulfillment. A rake task intended to be called from a cron job checks for ready shipments and initiates the fulfillment via the Amazon API. If the fulfillment transaction succeeds, the shipment enteres the ‘fulfilling’ state.

The cron job also queries Amazon for tracking numbers of any orders that are being fulfilled. If the tracking numbers are found, the shipment transitions into the ‘shipped’ state and an email is sent to the customer.


mehatem asheanffi said on September 21, 2011:

Thanks.. this is great.

Login to Comment.

This project is maintained by a core team of developers and is freely available for commercial use under the terms of the New BSD License.