diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-04 16:14:50 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-04 16:21:21 +0200 |
| commit | 40e3d1614cea93b734d568f4eebf20eb8954fa9b (patch) | |
| tree | b1c5f2a7c33105bd09d683d781d53e7f81769587 /views/blocks | |
| parent | c24b6746c27a7e81a9819ef523dec8f64a90f9a6 (diff) | |
Produktbewertungen: Sterne und Bewertungen im Shop
Sterne mit Schnitt unter dem Produktnamen und in den Kacheln, Liste mit Hinweis zur Echtheit unter dem Produkt, Link zum Bewerten im Kundenkonto. Ohne das Modul bleibt die Anzeige wie bisher.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/blocks')
| -rw-r--r-- | views/blocks/product-list.phtml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml index be33534..feb186f 100644 --- a/views/blocks/product-list.phtml +++ b/views/blocks/product-list.phtml @@ -36,6 +36,8 @@ <?php $h = 'h'.intval($arBlock['titleLevel']??3); ?><<?php echo $h; ?> class="wpsg-product-list__title"><a href="<?php echo esc_url($p['url']); ?>"><?php echo esc_html($name); ?></a></<?php echo $h; ?>> + <?php /* Sterne nur mit dem Modul Produktbewertungen, aus freigegebenen Bewertungen */ if ($this->hasMod('wpsg_mod_reviews')) echo $this->callMod('wpsg_mod_reviews', 'renderSummary', [$product_id, 'wpsg-product-list__rating']); ?> + <?php if ($this->canDisplayPrice()) { $price = $oProduct->getPrice($product_id); ?> <div class="wpsg-product-list__price"> <?php if ($this->hasMod('wpsg_mod_productvariants') && $this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$product_id])) { ?> |
