Commit 4b3eb099e14eda06e58643723e89a90a94b258e5

Authored by Rodrigo Souto
1 parent 68bb0816

Adding emails to the notification.

plugins/shopping_cart/views/shopping_cart_plugin/mailer/customer_notification.html.erb
... ... @@ -9,11 +9,13 @@
9 9 <p>
10 10 <%= _('This is a notification e-mail about your buy request on %s.') % link_to(@supplier.name, @supplier.url) %>
11 11 <%= _('The supplier already received your buy request and may contact you for confirmation.') %>
  12 + <%= _('If you have any doubts, contact us at: %s') % @supplier.contact_email %>
12 13 <%= _('Please check if your information below is correct:') %>
13 14 </p>
14 15  
15 16 <ul>
16 17 <li><b><%= _('Full name') %>: </b><%= @customer[:name] %></li>
  18 + <li><b><%= _('Email') %>: </b><%= @customer[:email] %></li>
17 19 <li><b><%= _('Phone number') %>: </b><%= @customer[:contact_phone] %></li>
18 20 <% if !@customer[:address].blank? || !@customer[:city].blank? || !@customer[:zip_code].blank? %>
19 21 <li><b><%= _('Address') %>:</b>
... ...
plugins/shopping_cart/views/shopping_cart_plugin/mailer/supplier_notification.html.erb
... ... @@ -13,6 +13,7 @@
13 13  
14 14 <ul>
15 15 <li><b><%= _('Full name') %>: </b><%= @customer[:name] %></li>
  16 + <li><b><%= _('Email') %>: </b><%= @customer[:email] %></li>
16 17 <li><b><%= _('Phone number') %>: </b><%= @customer[:contact_phone] %></li>
17 18 <% if !@customer[:address].blank? || !@customer[:city].blank? || !@customer[:zip_code].blank? %>
18 19 <li><b><%= _('Address') %>:</b>
... ...