caboose-cms 0.7.30 → 0.7.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/checkout_controller.rb +9 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f4a076cecb2c93b9817e00fc53ff92d574545d4
|
4
|
+
data.tar.gz: 4e6cc681c9cb76e27eb6d30c0e3c4eb53c542ad8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea7fed410863a8d85346d4aafda342388202b672139506fe2f09ed117bb07024f86c33f60c0fe6d7fcdf9eecaea68fb7809dbeba0cfa151b7bc0013232bfe4c
|
7
|
+
data.tar.gz: a4c7cf7a2b99da39f9b73992b1a67e4a5119536781391ecfa4d77c3230c5e20cb90ff8dec94cf0f3c0ab89071a1d26babd101b24f505d36b5cf77a7b0ce2c4e8
|
@@ -149,9 +149,15 @@ module Caboose
|
|
149
149
|
# Take funds from any gift cards that were used on the order
|
150
150
|
@order.take_gift_card_funds
|
151
151
|
|
152
|
-
# Send out emails
|
153
|
-
|
154
|
-
|
152
|
+
# Send out emails
|
153
|
+
begin
|
154
|
+
OrdersMailer.configure_for_site(@site.id).customer_new_order(@order).deliver
|
155
|
+
OrdersMailer.configure_for_site(@site.id).fulfillment_new_order(@order).deliver
|
156
|
+
rescue
|
157
|
+
puts "=================================================================="
|
158
|
+
puts "Error sending out order confirmation emails for order ID #{@order.id}"
|
159
|
+
puts "=================================================================="
|
160
|
+
end
|
155
161
|
|
156
162
|
# Emit order event
|
157
163
|
Caboose.plugin_hook('order_authorized', @order)
|
data/lib/caboose/version.rb
CHANGED