From 5078b45da254942f842e636e7505ca69f4470339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Wed, 30 Oct 2024 17:13:16 +0100 Subject: [PATCH] Fix empty last4 rendering (#52399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com> Co-authored-by: github-actions Co-authored-by: NĂ©stor Soriano --- .../woocommerce/changelog/52399-fix-empty-last4-rendering | 4 ++++ .../Internal/ReceiptRendering/Templates/order-receipt.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/52399-fix-empty-last4-rendering diff --git a/plugins/woocommerce/changelog/52399-fix-empty-last4-rendering b/plugins/woocommerce/changelog/52399-fix-empty-last4-rendering new file mode 100644 index 00000000000..b84ae414d39 --- /dev/null +++ b/plugins/woocommerce/changelog/52399-fix-empty-last4-rendering @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Avoid rendering the dash in the receipts when there's no info about the card used to pay the order. \ No newline at end of file diff --git a/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php b/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php index 2ed7b873930..3b1bae1d76c 100644 --- a/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php +++ b/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php @@ -26,7 +26,10 @@

- - + + + - +