Sha256: 1e5457a4e6e8fca88e7ef6a69543a15dfe97831b5e2b48185bdc110111beda42

Contents?: true

Size: 1.93 KB

Versions: 26

Compression:

Stored size: 1.93 KB

Contents

<%= Spree.t('order_mailer.confirm_email.dear_customer') %>

<%= Spree.t('order_mailer.confirm_email.instructions') %>

============================================================
<%= Spree.t('order_mailer.confirm_email.order_summary') %>
============================================================
<% @order.line_items.each do |item| %>
  <%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) @ <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
<%= Spree.t('order_mailer.confirm_email.subtotal', :subtotal => @order.display_item_total) %>
<% if @order.line_item_adjustments.exists? %>
  <% if @order.all_adjustments.promotion.eligible.exists? %>
    <% @order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
<%= Spree.t(:promotion) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: @order.currency) %>
    <% end %>
  <% end %>
<% end %>

<% @order.shipments.group_by { |s| s.selected_shipping_rate.try(:name) }.each do |name, shipments| %>
<%= Spree.t(:shipping) %>: <%= name %> <%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: @order.currency) %>
<% end %>

<% if @order.all_adjustments.eligible.tax.exists? %>
  <% @order.all_adjustments.eligible.tax.group_by(&:label).each do |label, adjustments| %>
<%= Spree.t(:tax) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: @order.currency) %>
  <% end %>
<% end %>

<% @order.adjustments.eligible.each do |adjustment| %>
  <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
<%= adjustment.label %> <%= adjustment.display_amount %>
<% end %>
============================================================
<%= Spree.t('order_mailer.confirm_email.total', :total => @order.display_total) %>

<%= Spree.t('order_mailer.confirm_email.thanks') %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_core-2.3.13 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.14 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.12 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.13 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.11 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.12 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.10 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.9 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.11 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.10 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.8 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.7 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.9 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.6 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.8 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.5 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.7 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.4 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.2.6 app/views/spree/order_mailer/confirm_email.text.erb
spree_core-2.3.3 app/views/spree/order_mailer/confirm_email.text.erb