diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-26 12:37:57 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-26 12:37:57 +0200 |
| commit | 0a673e200981dc34948f28d791d8112015465102 (patch) | |
| tree | a74937a32447ba09fea3b22877b202d242d919f5 | |
| parent | dbb5f49b4deb7af220d5a714d1f79fa93fd526ad (diff) | |
Produkte: Varianten-Mail, Teaser, TopSeller, Gutschein-PDF, Anzeigefehler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | views/mods/mod_productvariants/basket_row.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/overview_row.phtml | 2 | ||||
| -rw-r--r-- | 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 @@ <?php if (is_numeric($vari)) { ?>
<?php echo $value['name'] ?>:
<strong>
- <?php echo $value['value'] ?>; <?php echo __('Art. Nr.', 'wpsg').': '.$value['artnr'] ?>;
+ <?php echo $value['value'] ?>; <?php if (wpsg_getStr($value['artnr']) !== '') echo __('Art. Nr.', 'wpsg').': '.$value['artnr'].'; '; ?>
<?php if ($this->callMod('wpsg_mod_productvariants', 'showVariPrice', array($value['preis']))) { ?>
(<?php echo wpsg_ff($value['preis'], $this->get_option('wpsg_currency')); ?>)
<?php } ?>
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 @@ <?php if (is_numeric($vari)) { ?>
<?php echo $value['name'] ?>:
<strong>
- <?php echo $value['value'] ?>; <?php echo __('Art. Nr.', 'wpsg').': '.$value['artnr'] ?>;
+ <?php echo $value['value'] ?>; <?php if (wpsg_getStr($value['artnr']) !== '') echo __('Art. Nr.', 'wpsg').': '.$value['artnr'].'; '; ?>
<?php if ($this->callMod('wpsg_mod_productvariants', 'showVariPrice', array($value['preis']))) { ?>
(<?php echo wpsg_ff($value['preis'], $this->get_option('wpsg_currency')); ?>)
<?php } ?>
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']);
|
