Sha256: a89e2a7bdbd78d72db22da4660620f14420fa76ad981f33c6dbc7ceea5af5077
Contents?: true
Size: 1.69 KB
Versions: 3
Compression:
Stored size: 1.69 KB
Contents
<%= t('.dear_customer') %> <%= t('.instructions') %> ============================================================ <%= t('.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 %> ============================================================ <%= t('.subtotal') %> <%= @order.display_item_total %> <% if @order.line_item_adjustments.exists? %> <% if @order.all_adjustments.promotion.exists? %> <% @order.all_adjustments.promotion.group_by(&:label).each do |label, adjustments| %> <%= t('spree.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| %> <%= t('spree.shipping') %>: <%= name %> <%= Spree::Money.new(shipments.sum(&:total_before_tax), currency: @order.currency) %> <% end %> <% if @order.all_adjustments.tax.exists? %> <% @order.all_adjustments.tax.group_by(&:label).each do |label, adjustments| %> <%= t('spree.tax') %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: @order.currency) %> <% end %> <% end %> <% @order.adjustments.each do |adjustment| %> <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %> <%= adjustment.label %> <%= adjustment.display_amount %> <% end %> ============================================================ <%= t('.total') %> <%= @order.display_total %> <%= t('.thanks') %>
Version data entries
3 entries across 3 versions & 1 rubygems