Commit 0b0c001cf5e24a31c55813324d7e1bb47f45d180
Committed by
Rodrigo Souto
1 parent
837d754a
Exists in
master
and in
29 other branches
Replacing methods used on mailer
Also added cursor:pointer on form's button (ActionItem1970)
Showing
2 changed files
with
8 additions
and
4 deletions
Show diff stats
plugins/shopping_cart/lib/shopping_cart_plugin/mailer.rb
... | ... | @@ -5,9 +5,9 @@ class ShoppingCartPlugin::Mailer < ActionMailer::Base |
5 | 5 | prepend_view_path(ShoppingCartPlugin.root_path+'/views') |
6 | 6 | |
7 | 7 | def customer_notification(customer, supplier, items) |
8 | - domain = supplier.domains.first || supplier.environment.domains.first | |
8 | + domain = supplier.hostname || supplier.environment.default_hostname | |
9 | 9 | recipients customer[:email] |
10 | - from 'no-reply@' + domain.name | |
10 | + from 'no-reply@' + domain | |
11 | 11 | reply_to supplier.contact_email |
12 | 12 | subject _("[%s] Your buy request was performed successfully.") % supplier[:name] |
13 | 13 | content_type 'text/html' |
... | ... | @@ -18,9 +18,9 @@ class ShoppingCartPlugin::Mailer < ActionMailer::Base |
18 | 18 | end |
19 | 19 | |
20 | 20 | def supplier_notification(customer, supplier, items) |
21 | - domain = supplier.environment.domains.first | |
21 | + domain = supplier.environment.default_hostname | |
22 | 22 | recipients supplier.contact_email |
23 | - from 'no-reply@' + domain.name | |
23 | + from 'no-reply@' + domain | |
24 | 24 | reply_to customer[:email] |
25 | 25 | subject _("[%s] You have a new buy request from %s.") % [supplier.environment.name, customer[:name]] |
26 | 26 | content_type 'text/html' | ... | ... |
plugins/shopping_cart/public/style.css