caboose-store 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2VhZDIxN2IwYzU3NGRiOWE5M2Y2NGEzYWE3NWFiNDcxN2E5ODE3ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQ1NzllY2I5MDZkNGM3NDE3YjEwNjM1N2JhNDVkY2IyNzcxMzgwZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDE1ODdjYzdjNzliOGZiMTAyNmZlNGNlZWUwMDZlOWExMmNlOTE0YmM0Mjk3
|
10
|
+
ZGVjMzFmNzNjMDEzYTUxZDA3YmFiOWQxZWExYTUzNDNmZTI1NDFmMWRkOGZk
|
11
|
+
ZDBlNTI5NzZjNjRkOTliNjIwYTViZjZjOWRhZjQxMTk2YWM3NjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTYyMzVlZmNkZTdhZWRjYmJlMzEwNGY1N2U2OTY4OTRmMTU2OGZjNzhlNTI1
|
14
|
+
NzVjMmIzMmMwYjJlNGFkMWFlNmEyMTliZTI1NDc1YzQwZWUyOWJiOTdiNTlh
|
15
|
+
MTg4Y2IyNmM3NmJkMTBhNGM5YmVmNjZkNDg0NTAxMjQ0Yjk1MWU=
|
@@ -60,6 +60,7 @@ Caboose.Store.Modules.CheckoutStep1 = (function() {
|
|
60
60
|
$('#' + form + '_form_container').slideDown();
|
61
61
|
}
|
62
62
|
$('#' + form + '_button').addClass('selected');
|
63
|
+
$('#message').empty();
|
63
64
|
self.current_form = form;
|
64
65
|
};
|
65
66
|
|
@@ -125,7 +126,7 @@ Caboose.Store.Modules.CheckoutStep1 = (function() {
|
|
125
126
|
type: 'post',
|
126
127
|
success: function(resp2) {
|
127
128
|
if (resp2.error) $('#message').html("<p class='note error'>" + resp2.error + "</p>");
|
128
|
-
|
129
|
+
else window.location = '/checkout/step-two';
|
129
130
|
}
|
130
131
|
});
|
131
132
|
}
|
@@ -142,7 +143,14 @@ Caboose.Store.Modules.CheckoutStep1 = (function() {
|
|
142
143
|
data: $('#register_form').serialize(),
|
143
144
|
success: function(resp) {
|
144
145
|
if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
|
145
|
-
|
146
|
+
$.ajax({
|
147
|
+
url: '/checkout/attach-user',
|
148
|
+
type: 'post',
|
149
|
+
success: function(resp2) {
|
150
|
+
if (resp2.error) $('#message').html("<p class='note error'>" + resp2.error + "</p>");
|
151
|
+
else window.location = '/checkout/step-two';
|
152
|
+
}
|
153
|
+
});
|
146
154
|
}
|
147
155
|
});
|
148
156
|
return false;
|
@@ -206,13 +206,9 @@ module CabooseStore
|
|
206
206
|
# Clear cart
|
207
207
|
session[:cart_id] = nil
|
208
208
|
|
209
|
-
# Send out emails
|
210
|
-
|
211
|
-
|
212
|
-
OrdersMailer.fulfillment_new_order(@order).deliver
|
213
|
-
rescue
|
214
|
-
|
215
|
-
end
|
209
|
+
# Send out emails
|
210
|
+
OrdersMailer.customer_new_order(@order).deliver
|
211
|
+
OrdersMailer.fulfillment_new_order(@order).deliver
|
216
212
|
|
217
213
|
# Emit order event
|
218
214
|
Caboose.plugin_hook('order_authorized', @order)
|