core/app/views/comable/order_mailer/complete.text.erb
<%= subject_for(@order) %>
<%= "#{@order.class.human_attribute_name(:code)}: #{@order.code}" %>
----------------------------------------------------------------------
<%= Comable.t('order_mailer.complete.dear', name: @order.bill_full_name) %>
<%= Comable.t('order_mailer.complete.introductions', store_name: current_store.name) %>
<%- @order.shipments.select(&:shipment_method).each.with_index(1) do |shipment, index| %>
<%= "#{@order.class.human_attribute_name(:shipment_method)} ##{index}" %>:
<%= shipment.name %>
<%- end %>
<%= @order.class.human_attribute_name(:ship_address) %>:
<%= name_with_honorific @order.ship_full_name %>
======================================================================
<%= Comable::Order.model_name.human %>
<%= "#{@order.class.human_attribute_name(:code)}: #{@order.code}" %>
<%= "#{@order.class.human_attribute_name(:completed_at)}: #{I18n.l @order.completed_at.to_date}" %>
<%- @order.order_items.each do |order_item| %>
<%= name_with_quantity order_item.name_with_sku, order_item.quantity %>
<%= number_to_currency order_item.subtotal_price %>
<%- end %>
----------------------------------------------------------------------
<%= "#{@order.class.human_attribute_name(:item_total_price)}: #{number_to_currency @order.item_total_price}" %>
<%= "#{@order.class.human_attribute_name(:payment_fee)}: #{number_to_currency @order.payment_fee}" %>
<%= "#{@order.class.human_attribute_name(:shipment_fee)}: #{number_to_currency @order.shipment_fee}" %>
<%= "#{@order.class.human_attribute_name(:total_price)}: #{number_to_currency @order.total_price}" %>
<%= "#{@order.class.human_attribute_name(:payment_method)}: #{@order.payment.name}\n" if @order.payment -%>
======================================================================
<%= Comable.t('order_mailer.complete.outroductions', store_name: current_store.name) %>