fix typos and add missing helper

This commit is contained in:
Rafael Schouten
2014-09-16 16:10:48 +10:00
parent 1aa80e53b1
commit 49476b17e8
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Spree::OrderMailer.class_eval do
helper HtmlHelper
helper CheckoutHelper
helper SpreeCurrencyHelper
def confirm_email(order, resend = false)
find_order(order)
subject = (resend ? "[#{t(:resend).upcase}] " : '')

View File

@@ -10,7 +10,7 @@ Order for: <%= @order.bill_address.full_name %>
<%= item.variant.sku %> <%= raw(item.variant.product.supplier.name) %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (QTY: <%=item.quantity%>) @ <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
Subtotal: <%= spree_number_to_currency(checkout_cart_total_with _adjustments(@order)) %>
Subtotal: <%= spree_number_to_currency(checkout_cart_total_with_adjustments(@order)) %>
<% checkout_adjustments_for_summary(@order, exclude: [:distribution]).each do |adjustment| %>
<%= raw(adjustment.label) %> <%= adjustment.display_amount %>
<% end %>