From 79fd8ed98bafbc4c5ba70f6db32b475b75acf853 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Wed, 17 Sep 2014 15:37:38 +1000 Subject: [PATCH] dubug mail template --- .../order_mailer/confirm_email.text.haml | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/app/views/spree/order_mailer/confirm_email.text.haml b/app/views/spree/order_mailer/confirm_email.text.haml index 70e20b2255..80e889079f 100644 --- a/app/views/spree/order_mailer/confirm_email.text.haml +++ b/app/views/spree/order_mailer/confirm_email.text.haml @@ -8,45 +8,46 @@ Order Summary Order for: #{ @order.bill_address.full_name } - @order.line_items.each do |item| #{ item.variant.sku } #{ raw(item.variant.product.supplier.name) } #{ raw(item.variant.product.name) } #{ raw(item.variant.options_text) -} (QTY: #{item.quantity}) @ #{ item.single_money } = #{ item.display_amount } + ============================================================ Subtotal: #{ number_to_currency checkout_cart_total_with_adjustments(@order) } - checkout_adjustments_for_summary(@order, exclude: [:distribution]).each do |adjustment| } #{ raw(adjustment.label) } #{ adjustment.display_amount } Order Total: #{ @order.display_total } -- if @order.payments.first.andand.payment_method.andand.name.andand.include? "EFT" -============================================================ -Payment Details -============================================================ -#{ @order.payments.first.andand.payment_method.andand.description.andand.html_safe } +- if @order.payments.first.andand.payment_method.andand.name == "Spree::PaymentMethod::Check" + ============================================================ + Payment Details + ============================================================ + #{ @order.payments.first.andand.payment_method.andand.description.andand.html_safe } - if @order.shipping_method.andand.require_ship_address -============================================================ -Delivery Details -============================================================ -Your order will be delivered to: -#{ @order.ship_address.to_s } + ============================================================ + Delivery Details + ============================================================ + Your order will be delivered to: + #{ @order.ship_address.to_s } - if @order.order_cycle.andand.pickup_time_for(@order.distributor) -Delivery on: #{ @order.order_cycle.pickup_time_for(@order.distributor) } + Delivery on: #{ @order.order_cycle.pickup_time_for(@order.distributor) } - if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) } -Other delivery information: #{ @order.order_cycle.pickup_instructions_for(@order.distributor) } + Other delivery information: #{ @order.order_cycle.pickup_instructions_for(@order.distributor) } - else -============================================================ -Collection Details -============================================================ -- if @order.shipping_method.andand.description -#{ @order.shipping_method.description.html_safe } + ============================================================ + Collection Details + ============================================================ + - if @order.shipping_method.andand.description + #{ @order.shipping_method.description.html_safe } -- if @order.order_cycle.andand.pickup_time_for(@order.distributor) -Ready for collection: #{ @order.order_cycle.pickup_time_for(@order.distributor) } + - if @order.order_cycle.andand.pickup_time_for(@order.distributor) + Ready for collection: #{ @order.order_cycle.pickup_time_for(@order.distributor) } -- if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) -Collection instructions: #{ @order.order_cycle.pickup_instructions_for(@order.distributor) } + - if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) + Collection instructions: #{ @order.order_cycle.pickup_instructions_for(@order.distributor) } -- if @order.special_instructions.present? Order notes: #{ @order.special_instructions } + - if @order.special_instructions.present? Order notes: #{ @order.special_instructions } Thanks for your support.