caboose-cms 0.5.67 → 0.5.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/checkout_controller.rb +2 -12
- data/app/controllers/caboose/line_items_controller.rb +1 -1
- data/app/controllers/caboose/login_controller.rb +1 -1
- data/app/controllers/caboose/order_packages_controller.rb +1 -1
- data/app/mailers/caboose/orders_mailer.rb +2 -6
- data/app/models/caboose/order.rb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDdiMzBlZWU2NWJmMGY0NGE4YjA2MDE5NDQ0NWRjYWMxNTI1N2IxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTU0N2YyMWZhYzY2ZmZmYzkxMjg2ODE1YjYwYTA4NWY3OThkOTM2ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWVlODIxMTE2ZTE2ZDFhYWJmZjRlYWM2MTIwZTA3MTI5ODhmNDg2YjU2OGJm
|
10
|
+
OWEyMzM0ZTUzYzdkYjk4MjZkMGQzZDc5NzkzNTU1OTkyNDY4YTNhZjcxMmI0
|
11
|
+
M2RlMDEzNzQxMjc4NTRiYWNiNGE3MzYxN2RhMTgyYjQ1ODRjNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTVlY2M1ZTAyMWMxMGI2NzU4YTY5OWU3ODIxZWE2MzYzYWVhN2FjZmNhMDkz
|
14
|
+
Yzg3ZTM2MWMzZjUwNTJlYmE0MzY0MTMxMmE3OGYyMGMyZGJlMjhjM2Y4M2E2
|
15
|
+
OTIxMTc3NmMyNGVhNjljMzRiNDJhNTBiOTkyOTc3MjQ1Y2U3MjY=
|
@@ -14,16 +14,6 @@ module Caboose
|
|
14
14
|
def index
|
15
15
|
redirect_to '/checkout/step-one'
|
16
16
|
end
|
17
|
-
|
18
|
-
# Test Email
|
19
|
-
def test_email
|
20
|
-
|
21
|
-
m = OrdersMailer.configure_for_site(@site.id).test_email
|
22
|
-
Caboose.log(m.delivery_method.settings)
|
23
|
-
m.deliver
|
24
|
-
|
25
|
-
render :json => DateTime.now
|
26
|
-
end
|
27
17
|
|
28
18
|
# GET /checkout/step-one
|
29
19
|
def step_one
|
@@ -266,8 +256,8 @@ module Caboose
|
|
266
256
|
order.status = 'pending'
|
267
257
|
|
268
258
|
# Send out emails
|
269
|
-
OrdersMailer.customer_new_order(order).deliver
|
270
|
-
OrdersMailer.fulfillment_new_order(order).deliver
|
259
|
+
OrdersMailer.configure_for_site(@site.id).customer_new_order(order).deliver
|
260
|
+
OrdersMailer.configure_for_site(@site.id).fulfillment_new_order(order).deliver
|
271
261
|
|
272
262
|
# Emit order event
|
273
263
|
Caboose.plugin_hook('order_authorized', order)
|
@@ -74,7 +74,7 @@ module Caboose
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
if send_status_email
|
77
|
-
OrdersMailer.customer_status_updated(li.order).deliver
|
77
|
+
OrdersMailer.configure_for_site(@site.id).customer_status_updated(li.order).deliver
|
78
78
|
end
|
79
79
|
resp.success = save && li.save
|
80
80
|
render :json => resp
|
@@ -84,7 +84,7 @@ module Caboose
|
|
84
84
|
bob.password_reset_sent = DateTime.now
|
85
85
|
bob.save
|
86
86
|
|
87
|
-
LoginMailer.forgot_password_email(bob).deliver
|
87
|
+
LoginMailer.configure_for_site(@site.id).forgot_password_email(bob).deliver
|
88
88
|
|
89
89
|
resp.success = "We just sent you an email. The reset link inside is good for 3 days."
|
90
90
|
render :json => resp
|
@@ -96,7 +96,7 @@ module Caboose
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
if send_status_email
|
99
|
-
OrdersMailer.customer_status_updated(li.order).deliver
|
99
|
+
OrdersMailer.configure_for_site(@site.id).customer_status_updated(li.order).deliver
|
100
100
|
end
|
101
101
|
resp.success = save && li.save
|
102
102
|
render :json => resp
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Caboose
|
2
2
|
class OrdersMailer < ActionMailer::Base
|
3
|
-
default :from => 'lockerroombiz@gmail.com'
|
3
|
+
#default :from => 'lockerroombiz@gmail.com'
|
4
4
|
|
5
5
|
#before_action :configure
|
6
6
|
#def configure(site_id)
|
@@ -16,11 +16,7 @@ module Caboose
|
|
16
16
|
# }
|
17
17
|
# default_options[:from] = delivery_options[:user_name]
|
18
18
|
# delivery_method.settings.merge!(delivery_options)
|
19
|
-
#end
|
20
|
-
|
21
|
-
def test_email
|
22
|
-
mail(:to => 'william@nine.is', :subject => "Test #{DateTime.now.strftime('%H:%M:%S')}")
|
23
|
-
end
|
19
|
+
#end
|
24
20
|
|
25
21
|
# Sends a confirmation email to the customer about a new order
|
26
22
|
def customer_new_order(order)
|
data/app/models/caboose/order.rb
CHANGED
data/lib/caboose/version.rb
CHANGED