summaryrefslogtreecommitdiff
path: root/views/blocks
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-02 15:27:02 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-02 15:27:02 +0200
commit7c694d8499f58080992aadfc6b297b46ee98fe4f (patch)
tree6c6483124b8ce448fdaa17f1878d1ba45208cb16 /views/blocks
parenteb0478258eb14c060246d5ccd0f84399356fb761 (diff)
Produktliste: Lieferzeit unter Preis und Grundpreis
Wie in der Produktansicht, nur mit Modul Lieferzeiten und Anzeige am Produkt (Punkt 8.14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/blocks')
-rw-r--r--views/blocks/product-list.phtml11
1 files changed, 11 insertions, 0 deletions
diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml
index a58b364..767ebd2 100644
--- a/views/blocks/product-list.phtml
+++ b/views/blocks/product-list.phtml
@@ -46,6 +46,17 @@
<div class="wpsg-product-list__baseprice"><?php echo $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$price, $oProduct->__get('fmenge'), $product_id]); ?></div>
<?php } ?>
<div class="wpsg-product-list__taxnote wpsg_produkt_preishinweis"><?php echo \wpsg\Blocks::priceNote($oProduct, $hint_id); ?></div>
+ <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
+ <div class="wpsg-product-list__deliverytime">
+ <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', [$oProduct->getProductKey()])) { ?>
+ <?php echo esc_html((string)$this->callMod('wpsg_mod_deliverytime', 'displayStoreText', [$oProduct->getProductKey()])); ?>
+ <?php } else { $strDelay = (string)$this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', [$oProduct->getProductKey()]); ?>
+ <?php if ($strDelay !== '') { echo esc_html($strDelay); } else { ?>
+ <?php echo esc_html__('Lieferzeit:', 'wpsg'); ?> <?php echo wp_kses_post((string)$this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', [$oProduct->getProductKey()])); ?>
+ <?php } ?>
+ <?php } ?>
+ </div>
+ <?php } ?>
<?php } else { ?>
<div class="wpsg-product-list__price"><?php echo esc_html__('Preise nur für eingeloggte Benutzer', 'wpsg'); ?></div>
<?php } ?>