From 4b8385250c3e7c80ea37600bb07c1741fc221b59 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Thu, 1 Oct 2026 14:22:19 +0200 Subject: Produktvorlagen: Produktname nicht doppelt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die Unterüberschrift erscheint nur, wenn der Produktname (Detail) gefüllt ist und abweicht, wie schon in Vorlage 2. Co-Authored-By: Claude Opus 5.5 --- views/produkttemplates/standard.phtml | 4 +++- views/produkttemplates/standard3.phtml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index ea1087a..4cb73d7 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -25,7 +25,9 @@ titleDisplayed) { ?>

getProductName(); ?>

-

view['data']['detailname']; ?>

+ view['data']['detailname']??'') !== '' && $oProduct->getProductName() !== $this->view['data']['detailname']) { ?> +

view['data']['detailname']; ?>

+ callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> diff --git a/views/produkttemplates/standard3.phtml b/views/produkttemplates/standard3.phtml index 788b21c..af0206e 100644 --- a/views/produkttemplates/standard3.phtml +++ b/views/produkttemplates/standard3.phtml @@ -62,7 +62,9 @@ titleDisplayed) { ?>

getProductName($this->view['data']['id']); ?>

-

view['data']['detailname']; ?>

+ view['data']['detailname']??'') !== '' && $this->getProductName($this->view['data']['id']) !== $this->view['data']['detailname']) { ?> +

view['data']['detailname']; ?>

+ callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> -- cgit v1.2.3