Permalink
Browse files

stop sending the ship notification via spree

  • Loading branch information...
1 parent 4d03edd commit 31beb55c2a99f8b6900d4ff44c5250a32279e3cd @wlipa wlipa committed Jul 26, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 lib/spree_fulfillment.rb
@@ -107,9 +107,19 @@ def update!(order)
new_state = self.state
post_ready_fulfill if new_state == 'ready' and old_state != 'ready'
end
-
+
+
+ # Disable the Spree 'shipped' email since it's really going to be shipped later
+ # by the fulfillment service.
+ def after_ship
+ inventory_units.each &:ship!
+ # removing this call: ShipmentMailer.shipped_email(self).deliver
+ Fulfillment.log "preventing Shipment.after_ship from sending email"
+ end
+
+
end
-
+
end
config.to_prepare &method(:activate).to_proc

0 comments on commit 31beb55

Please sign in to comment.