summaryrefslogtreecommitdiff
path: root/views/admin/widerrufsbelehrung.phtml
diff options
context:
space:
mode:
authordaniel <noreply@maennchen1.de>2026-09-18 13:07:57 +0200
committerdaniel <noreply@maennchen1.de>2026-09-18 13:07:57 +0200
commitfc78e798611b1ae2981dfba33bc8d4b043fab639 (patch)
tree97dc9f05a63177665b3614e716ad459b676ed44a /views/admin/widerrufsbelehrung.phtml
parentaeb11af3a48bbf99256707eea6ef781748002d85 (diff)
- Gewährleistungslabel
- Optik - GARAN Label in Bestellabschluß
Diffstat (limited to 'views/admin/widerrufsbelehrung.phtml')
-rw-r--r--views/admin/widerrufsbelehrung.phtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/admin/widerrufsbelehrung.phtml b/views/admin/widerrufsbelehrung.phtml
index 3534a5a..2eeff7c 100644
--- a/views/admin/widerrufsbelehrung.phtml
+++ b/views/admin/widerrufsbelehrung.phtml
@@ -67,6 +67,32 @@
<?php if ($this->hasMod('wpsg_mod_auftragsbestaetigung')) { ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_widerrufsformular_orderconfirm', __('Anhang an Auftragsbestätigung', 'wpsg'), $this->get_option('wpsg_widerrufsformular_orderconfirm')); ?>
<?php } ?>
+
+ <hr />
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_warranty_label', __('Gewährleistungslabel anzeigen wenn nötig', 'wpsg'), $this->get_option('wpsg_warranty_label'), ['id' => 'wpsg_warranty_label']); ?>
+
+ <div id="wpsg_warranty_label_layer" style="display:none;">
+ <?php echo wpsg_drawForm_Select('wpsg_warranty_layout', __('Darstellung vom Gewährleistungslabel', 'wpsg'), [
+ wpsg_ShopController::WARRANTYLABEL_POPUP => __('Als Popup vor Bestellabschluss', 'wpsg'),
+ wpsg_ShopController::WARRANTYLABEL_INLINE => __('vor "Zahlungspflichtig bestellen"', 'wpsg')
+ ], wpsg_ShopController::getShop()->get_option('wpsg_warranty_layout')); ?>
+ </div>
+ <script>
+
+ const el_wpsg_warranty_label = document.getElementById('wpsg_warranty_label');
+ const el_wpsg_warranty_label_layer = document.getElementById('wpsg_warranty_label_layer');
+
+ el_wpsg_warranty_label.addEventListener('change', () => {
+
+ if (el_wpsg_warranty_label.checked) el_wpsg_warranty_label_layer.style.display = 'block';
+ else el_wpsg_warranty_label_layer.style.display = 'none';
+
+ });
+
+ el_wpsg_warranty_label.dispatchEvent(new Event('change'));
+
+ </script>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>