Sha256: eaead8097eabc17ae60e8533988ad8d3a1163d3667a22433e9dbf88eda7bee20

Contents?: true

Size: 1.92 KB

Versions: 79

Compression:

Stored size: 1.92 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') %> <%= @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') %> <%= @order.display_total %>

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

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
solidus_core-2.3.1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.2.2 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.1.1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.0.3 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.4.2 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.3.2 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.2.3 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.1.4 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.0.7 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.3.0 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.3.0.rc3 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.3.0.rc2 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.3.0.rc1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.3.0.beta1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.0.2 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-1.4.1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.2.1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.2.0 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.2.0.rc1 app/views/spree/order_mailer/confirm_email.text.erb
solidus_core-2.2.0.beta1 app/views/spree/order_mailer/confirm_email.text.erb