summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/blocks/product-list.phtml4
-rw-r--r--views/css/frontend.css1
-rw-r--r--views/css/wpsg-theme.css1
-rw-r--r--views/mods/mod_productview/productview.phtml4
4 files changed, 8 insertions, 2 deletions
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();
?>
<?php if (sizeof($arBlock['arProducts']) === 0) { ?>
@@ -40,7 +41,7 @@
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
<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); ?></div>
+ <div class="wpsg-product-list__taxnote wpsg_produkt_preishinweis"><?php echo \wpsg\Blocks::priceNote($oProduct, $hint_id); ?></div>
<?php } else { ?>
<div class="wpsg-product-list__price"><?php echo esc_html__('Preise nur für eingeloggte Benutzer', 'wpsg'); ?></div>
<?php } ?>
@@ -61,4 +62,5 @@
</li>
<?php } ?>
</ul>
+<?php echo \wpsg\Blocks::kleinunternehmerHint($hint_id); ?>
<?php } ?>
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 @@
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
<div class="wpsg-pv__baseprice"><?php echo $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$price, $oProduct->fmenge, $product_id]); ?></div>
<?php } ?>
- <p class="wpsg-pv__taxnote wpsg_produkt_preishinweis"><?php echo \wpsg\Blocks::priceNote($oProduct); ?></p>
+ <p class="wpsg-pv__taxnote wpsg_produkt_preishinweis"><?php echo \wpsg\Blocks::priceNote($oProduct, $hint_id); ?></p>
<?php } else { ?>
<p class="wpsg-pv__price"><?php echo esc_html__('Preise werden nur für angemeldete Benutzer angezeigt.', 'wpsg'); ?></p>
<?php } ?>
@@ -143,6 +144,7 @@
</li>
<?php } ?>
</ul>
+ <?php echo \wpsg\Blocks::kleinunternehmerHint($hint_id); ?>
<?php } ?>
<?php if ($v['pages'] > 1) { ?>