From 11fbe7d5c96a8a2f256d59ffba49e5f3316e7c8f Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 18 Feb 2020 10:45:12 +1100 Subject: [PATCH] Show last payment method in order confirmations --- app/views/spree/order_mailer/_payment.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spree/order_mailer/_payment.html.haml b/app/views/spree/order_mailer/_payment.html.haml index 9e7a3a22c8..60fc1056f4 100644 --- a/app/views/spree/order_mailer/_payment.html.haml +++ b/app/views/spree/order_mailer/_payment.html.haml @@ -8,7 +8,7 @@ = t :email_payment_summary %h4 = t :email_payment_method - %strong= @order.payments.first.andand.payment_method.andand.name.andand.html_safe + %strong= OrderPaymentFinder.last_payment_method(@order)&.name %p - %em= @order.payments.first.andand.payment_method.andand.description.andand.html_safe + %em= OrderPaymentFinder.last_payment_method(@order)&.description %p