From f3e250d38f525736cefcaf1c3e316f9e7cbc40a2 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Thu, 1 Oct 2026 19:41:01 +0200 Subject: Blöcke: Kleinunternehmer-Hinweis unter der Liste MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit „Endpreis“ in Produktliste und Produktansichten verweist auf den Hinweistext unter der jeweiligen Liste statt auf ein fehlendes Ziel (K44). Co-Authored-By: Claude Opus 5.5 --- views/blocks/product-list.phtml | 4 +++- views/css/frontend.css | 1 + views/css/wpsg-theme.css | 1 + views/mods/mod_productview/productview.phtml | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml index 1f7e0a1..de1b1ea 100644 --- a/views/blocks/product-list.phtml +++ b/views/blocks/product-list.phtml @@ -12,6 +12,7 @@ $arBlock = $this->view['wpsg_block']; $currency = $this->get_option('wpsg_currency'); + $hint_id = \wpsg\Blocks::kleinunternehmerHintID(); ?> @@ -40,7 +41,7 @@ hasMod('wpsg_mod_fuellmenge')) { ?>
callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$price, $oProduct->__get('fmenge'), $product_id]); ?>
-
+
@@ -61,4 +62,5 @@ + diff --git a/views/css/frontend.css b/views/css/frontend.css index eff9f08..f824519 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -756,6 +756,7 @@ html body .wpsg_product_garan_wrap a.wpsg_product_garan img { display:block; max .wpsg-pv .wpsg-pv__pager span[aria-current] { font-weight:bold; background-color:#F5F5F5; } .wpsg-pv .wpsg-pv__pager .wpsg-pv__gap { border-color:transparent; } .wpsg-pv.is-loading { opacity:0.5; pointer-events:none; } +.wpsg-kuhint { margin-top:1rem; font-size:0.8em; font-style:italic; } .wpsg-pvf .wpsg-pvf__item { margin:0 0 1rem 0; padding:0; border:0; min-width:0; } .wpsg-pvf .wpsg-pvf__title { margin:0 0 0.5em 0; padding:0; font-size:1em; font-weight:bold; } .wpsg-pvf .wpsg-pvf__item ul { margin:0; padding-left:1.2em; } diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css index eef6abf..4bc5345 100644 --- a/views/css/wpsg-theme.css +++ b/views/css/wpsg-theme.css @@ -619,6 +619,7 @@ html body .wpsg_product_garan_wrap a.wpsg_product_garan img { display:block; max .wpsg-pv :where(.wpsg-pv__pager span[aria-current]) { font-weight:bold; background-color:var(--wpsg-color-surface); } .wpsg-pv :where(.wpsg-pv__pager .wpsg-pv__gap) { border-color:transparent; } .wpsg-pv.is-loading { opacity:0.5; pointer-events:none; } +:where(.wpsg-kuhint) { margin-top:var(--wpsg-gap); font-size:var(--wpsg-font-size-small); font-style:italic; } .wpsg-pvf :where(.wpsg-pvf__item) { margin:0 0 var(--wpsg-gap) 0; padding:0; border:0; min-width:0; } .wpsg-pvf :where(.wpsg-pvf__title) { margin:0 0 0.5em 0; padding:0; font-size:1em; font-weight:bold; } .wpsg-pvf :where(.wpsg-pvf__item ul) { margin:0; padding-left:1.2em; } diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml index c3fbc57..b6219cd 100644 --- a/views/mods/mod_productview/productview.phtml +++ b/views/mods/mod_productview/productview.phtml @@ -13,6 +13,7 @@ $v = $this->view['wpsg_mod_productview']; $atts = $v['atts']; $currency = $this->get_option('wpsg_currency'); + $hint_id = \wpsg\Blocks::kleinunternehmerHintID(); $prefix = (($atts['key'] === 'default')?'pv-':'pv-'.$atts['key'].'-'); $arOrder = $v['arOrder']; @@ -97,7 +98,7 @@ hasMod('wpsg_mod_fuellmenge')) { ?>
callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$price, $oProduct->fmenge, $product_id]); ?>
-

+

@@ -143,6 +144,7 @@ + 1) { ?> -- cgit v1.2.3