Sha256: ec7f33987403b810ba3f4cf0a361678afe1b0ef87c76a031c78f0f0a0c666549

Contents?: true

Size: 1.29 KB

Versions: 32

Compression:

Stored size: 1.29 KB

Contents

<% line_items.each do |item| %>
  <%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) <%= Spree.t('at_symbol') %> <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
<%= Spree.t('order_mailer.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.additional_tax_total != 0 %>
  <%= Spree.t(:tax) %>: <%= order.display_additional_tax_total.to_html %>
<% end %>

<% order.adjustments.eligible.each do |adjustment| %>
  <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
  <%= adjustment.label %> <%= adjustment.display_amount %>
<% end %>

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
spree_emails-4.10.1 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.10.0 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.9.0 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.8.3 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.8.2 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.7.3 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.6 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.5.5 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.3.3 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.4.1 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.5.4 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.5 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.7.1 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.4 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.7.0 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.3 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.2 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.1 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.6.0 app/views/spree/shared/_purchased_items_table.text.erb
spree_emails-4.5.3 app/views/spree/shared/_purchased_items_table.text.erb