mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
fix typos and add missing helper
This commit is contained in:
@@ -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}] " : '')
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user