From 0a673e200981dc34948f28d791d8112015465102 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Sat, 26 Sep 2026 12:37:57 +0200 Subject: Produkte: Varianten-Mail, Teaser, TopSeller, Gutschein-PDF, Anzeigefehler Co-Authored-By: Claude Opus 5.5 --- views/mods/mod_productvariants/basket_row.phtml | 2 +- views/mods/mod_productvariants/overview_row.phtml | 2 +- views/mods/mod_voucherproduct/voucher_pdf.phtml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/views/mods/mod_productvariants/basket_row.phtml b/views/mods/mod_productvariants/basket_row.phtml index 6a187a1..c542636 100644 --- a/views/mods/mod_productvariants/basket_row.phtml +++ b/views/mods/mod_productvariants/basket_row.phtml @@ -19,7 +19,7 @@ : - ; ; + ; callMod('wpsg_mod_productvariants', 'showVariPrice', array($value['preis']))) { ?> (get_option('wpsg_currency')); ?>) diff --git a/views/mods/mod_productvariants/overview_row.phtml b/views/mods/mod_productvariants/overview_row.phtml index e16d6ac..95d75d7 100644 --- a/views/mods/mod_productvariants/overview_row.phtml +++ b/views/mods/mod_productvariants/overview_row.phtml @@ -19,7 +19,7 @@ : - ; ; + ; callMod('wpsg_mod_productvariants', 'showVariPrice', array($value['preis']))) { ?> (get_option('wpsg_currency')); ?>) diff --git a/views/mods/mod_voucherproduct/voucher_pdf.phtml b/views/mods/mod_voucherproduct/voucher_pdf.phtml index b8831d9..35e54f4 100644 --- a/views/mods/mod_voucherproduct/voucher_pdf.phtml +++ b/views/mods/mod_voucherproduct/voucher_pdf.phtml @@ -25,7 +25,7 @@ foreach ($this->view['texte'] as $t) { - if ($t['bg'] == '1' && $t['aktiv'] == '1') + if (($t['bg'] ?? '0') == '1' && ($t['aktiv'] ?? '0') == '1') { $t['text'] = $this->replaceUniversalPlatzhalter($t['text'], $this->view['order_id'], false, false, $this->view['product_id'], $this->view['customReplace'], $this->view['product_index']); @@ -64,7 +64,8 @@ foreach ($this->view['texte'] as $t) { - if ($t['aktiv'] == '1') + // Hintergrundtexte sind oben schon gedruckt + if (($t['aktiv'] ?? '0') == '1' && ($t['bg'] ?? '0') != '1') { $t['text'] = $this->replaceUniversalPlatzhalter($t['text'], $this->view['order_id'], false, false, $this->view['product_id'], $this->view['customReplace'], $this->view['product_index']); -- cgit v1.2.3