From f99f2c81ac40fe80e470f9ee8d0a5e8b14186ba8 Mon Sep 17 00:00:00 2001 From: kernal053 Date: Tue, 26 Nov 2024 13:15:05 +0530 Subject: [PATCH] Add 'Voucher:' before voucher code on order confirmation emails --- app/views/spree/order_mailer/_order_summary.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/spree/order_mailer/_order_summary.html.haml b/app/views/spree/order_mailer/_order_summary.html.haml index 1c3b4c7480..724cfafb33 100644 --- a/app/views/spree/order_mailer/_order_summary.html.haml +++ b/app/views/spree/order_mailer/_order_summary.html.haml @@ -43,6 +43,8 @@ - checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment| %tr %td{align: "right", colspan: "3"} + - if adjustment.originator_type == "Voucher" + = "#{t(:voucher)}:" = "#{adjustment.label}:" %td{align: "right"} = adjustment.display_amount