summaryrefslogtreecommitdiff
path: root/views/blocks
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-03 13:29:22 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-03 13:29:22 +0200
commitea234677a16f1449672add644b2dd6d765e121d7 (patch)
tree74e5fa7f0e6e9e87956e32ca675cba545cb6dfd7 /views/blocks
parent13b8f2e3ea934df5ce34490904a0dc652bb100f1 (diff)
Produkte: Etiketten „Neu“ und „Angebot“ im Modus „neu“
Neuer Schalter „Als neu kennzeichnen“ am Produkt; „Angebot“ erscheint bei einem Streichpreis. Die Etiketten stehen über dem Titel der Produktseite und in der Produktliste auf dem Bild. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/blocks')
-rw-r--r--views/blocks/product-list.phtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml
index 767ebd2..9b1d103 100644
--- a/views/blocks/product-list.phtml
+++ b/views/blocks/product-list.phtml
@@ -32,6 +32,8 @@
</a>
<?php } ?>
+ <?php /* Etiketten am Bild, nur im Modus „neu“ (Punkt 8.15) */ if (\wpsg\ThemeStyle::isThemeMode()) echo \wpsg\ProductPage::labels($oProduct, floatval($oProduct->getPrice($product_id))); ?>
+
<h3 class="wpsg-product-list__title"><a href="<?php echo esc_url($p['url']); ?>"><?php echo esc_html($name); ?></a></h3>
<?php if ($this->canDisplayPrice()) { $price = $oProduct->getPrice($product_id); ?>