summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/css/wpsg-theme.css1
-rw-r--r--views/produktseite/produkt.phtml3
2 files changed, 3 insertions, 1 deletions
diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css
index 2d9ac93..c930e37 100644
--- a/views/css/wpsg-theme.css
+++ b/views/css/wpsg-theme.css
@@ -359,6 +359,7 @@
.wpsg-product :where(.wpsg-product__amount) { display:flex; flex-direction:column; gap:0.3em; }
.wpsg-product :where(.wpsg-product__amount > label) { margin:0; }
.wpsg-product .wpsg-product__buy .wpsg_add_basket { flex:1 1 12em; min-height:44px; }
+.wpsg-product :where(.wpsg-product__after-buy) { display:flex; flex-wrap:wrap; gap:var(--wpsg-gap); margin-top:0.75em; }
.wpsg-product :where(.wpsg-product__facts) { margin:var(--wpsg-gap) 0 0; padding:var(--wpsg-gap) 0 0; list-style:none; border-top:1px solid var(--wpsg-color-line); display:flex; flex-direction:column; gap:0.25em; opacity:var(--wpsg-muted-opacity); }
.wpsg-product :where(.wpsg-product__section) { margin-top:calc(var(--wpsg-gap) * 2); }
.wpsg-product :where(.wpsg-product__section-title) { margin:0 0 0.5em; }
diff --git a/views/produktseite/produkt.phtml b/views/produktseite/produkt.phtml
index 24534ff..714f80b 100644
--- a/views/produktseite/produkt.phtml
+++ b/views/produktseite/produkt.phtml
@@ -296,7 +296,7 @@
<input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?><?php echo wpsg_button_class(); ?>" type="submit" value="<?php echo esc_attr(wpsg_button_text('add_to_basket', __('In den Warenkorb', 'wpsg'))); ?>" name="wpsg[submit]" />
- <?php echo do_action('wpsg_producttemplate_afterButton'); ?>
+ <?php /* Ausgaben nach dem Knopf (Widerrufsknopf) in eigener Zeile unter Menge und Knopf (Punkt 8.8) */ ob_start(); do_action('wpsg_producttemplate_afterButton'); $after_button = trim((string)ob_get_clean()); ?>
<?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
<script type="text/javascript">
@@ -343,6 +343,7 @@
<?php } ?>
</div>
+ <?php if ($after_button !== '') { ?><div class="wpsg-product__after-buy"><?php echo $after_button; ?></div><?php } ?>
<?php } ?>
</div>
</div>