Skip to content

Commit

Permalink
Add 'Voucher:' before voucher code on order confirmation emails
Browse files Browse the repository at this point in the history
  • Loading branch information
kernal053 committed Dec 4, 2024
1 parent 4c71ea3 commit ee47750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/spree/order_mailer/_order_summary.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee47750

Please sign in to comment.