summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/blocks/product-list.phtml11
-rw-r--r--views/css/frontend.css1
-rw-r--r--views/css/wpsg-theme.css2
3 files changed, 13 insertions, 1 deletions
diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml
index a58b364..767ebd2 100644
--- a/views/blocks/product-list.phtml
+++ b/views/blocks/product-list.phtml
@@ -46,6 +46,17 @@
<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, $hint_id); ?></div>
+ <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
+ <div class="wpsg-product-list__deliverytime">
+ <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', [$oProduct->getProductKey()])) { ?>
+ <?php echo esc_html((string)$this->callMod('wpsg_mod_deliverytime', 'displayStoreText', [$oProduct->getProductKey()])); ?>
+ <?php } else { $strDelay = (string)$this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', [$oProduct->getProductKey()]); ?>
+ <?php if ($strDelay !== '') { echo esc_html($strDelay); } else { ?>
+ <?php echo esc_html__('Lieferzeit:', 'wpsg'); ?> <?php echo wp_kses_post((string)$this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', [$oProduct->getProductKey()])); ?>
+ <?php } ?>
+ <?php } ?>
+ </div>
+ <?php } ?>
<?php } else { ?>
<div class="wpsg-product-list__price"><?php echo esc_html__('Preise nur für eingeloggte Benutzer', 'wpsg'); ?></div>
<?php } ?>
diff --git a/views/css/frontend.css b/views/css/frontend.css
index 4ba7a0f..e8d353e 100644
--- a/views/css/frontend.css
+++ b/views/css/frontend.css
@@ -716,6 +716,7 @@ html body .wpsg_product_garan_wrap a.wpsg_product_garan img { display:block; max
.wpsg-block-product-list .wpsg-product-list__price, .wpsg-block-product-price .wpsg-product-list__price { font-size:1.2em; }
.wpsg-block-product-list .wpsg-product-list__taxnote,
.wpsg-block-product-list .wpsg-product-list__baseprice,
+.wpsg-block-product-list .wpsg-product-list__deliverytime,
.wpsg-block-product-price .wpsg-product-list__taxnote,
.wpsg-block-product-price .wpsg-product-list__baseprice { font-size:0.8em; }
.wpsg-block-product-list .wpsg-product-list__action, .wpsg-block-product-price .wpsg-product-list__action { margin-top:auto; padding-top:0.5em; }
diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css
index 80a8279..5b732d0 100644
--- a/views/css/wpsg-theme.css
+++ b/views/css/wpsg-theme.css
@@ -581,7 +581,7 @@ html body .wpsg_product_garan_wrap a.wpsg_product_garan img { display:block; max
.wpsg-block-product-list :where(.wpsg-product-list__image img) { display:block; width:100%; height:auto; }
.wpsg-block-product-list :where(.wpsg-product-list__title) { margin:0; font-size:1em; line-height:1.3; overflow-wrap:anywhere; hyphens:auto; }
.wpsg-block-product-list :where(.wpsg-product-list__price), .wpsg-block-product-price :where(.wpsg-product-list__price) { font-size:1.2em; }
-.wpsg-block-product-list :where(.wpsg-product-list__taxnote, .wpsg-product-list__baseprice), .wpsg-block-product-price :where(.wpsg-product-list__taxnote, .wpsg-product-list__baseprice) { font-size:var(--wpsg-font-size-small); opacity:var(--wpsg-muted-opacity); }
+.wpsg-block-product-list :where(.wpsg-product-list__taxnote, .wpsg-product-list__baseprice, .wpsg-product-list__deliverytime), .wpsg-block-product-price :where(.wpsg-product-list__taxnote, .wpsg-product-list__baseprice) { font-size:var(--wpsg-font-size-small); opacity:var(--wpsg-muted-opacity); }
.wpsg-block-product-list :where(.wpsg-product-list__action), .wpsg-block-product-price :where(.wpsg-product-list__action) { margin-top:auto; padding-top:0.5em; }
.wpsg-block-product-list :where(.wpsg-product-list__action form), .wpsg-block-product-price :where(.wpsg-product-list__action form) { margin:0; }
.wpsg-block-product-list :where(.wpsg-product-list__action .wpsg_button), .wpsg-block-product-price :where(.wpsg-product-list__action .wpsg_button) { display:block; width:100%; margin:0; text-align:center; box-sizing:border-box; }