diff options
| author | daniel <noreply@maennchen1.de> | 2026-09-18 13:07:57 +0200 |
|---|---|---|
| committer | daniel <noreply@maennchen1.de> | 2026-09-18 13:07:57 +0200 |
| commit | fc78e798611b1ae2981dfba33bc8d4b043fab639 (patch) | |
| tree | 97dc9f05a63177665b3614e716ad459b676ed44a | |
| parent | aeb11af3a48bbf99256707eea6ef781748002d85 (diff) | |
- Gewährleistungslabel
- Optik
- GARAN Label in Bestellabschluß
| -rw-r--r-- | views/admin/widerrufsbelehrung.phtml | 26 | ||||
| -rw-r--r-- | views/css/frontend.css | 7 | ||||
| -rw-r--r-- | views/gfx/garan/legal_guarantee_notice_den.jpg | bin | 0 -> 324892 bytes | |||
| -rw-r--r-- | views/mods/mod_ordercondition/list.phtml | 6 | ||||
| -rw-r--r-- | views/warenkorb/overview.phtml | 32 |
5 files changed, 71 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(); ?>
diff --git a/views/css/frontend.css b/views/css/frontend.css index 49ae1d0..2abe5bd 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -129,8 +129,15 @@ input.wpsg_error { border-color:red !important; border:1px solid red; } .wpsg_basket input.amount { padding:0.75em 0.25em; }
.wpsg_checkout2 .wpsg_overviewbutton,
.wpsg_checkout2 .wpsg_checkoutbutton,
+.wpsg_overview .garan_label_wrap { text-align:center; padding:1rem 0; }
.wpsg_overview .wpsg_orderbutton,
.wpsg_overview .wpsg_checkoutbutton,
+.wpsg_overview .garan_label_popup_confirm { text-align:center; padding:0.75em 1.5em; cursor:pointer; }
+.wpsg_overview .garan_label_popup { position:fixed; top:0; left:0; right:0; bottom:0; z-index:100000; display:flex; align-items:center; justify-content:center; padding:1rem; background-color:rgba(0, 0, 0, 0.6); }
+.wpsg_overview .garan_label_popup .garan_label_popup_inner { display:flex; flex-direction:column; max-width:600px; max-height:100%; text-align:center; padding:1rem; background-color:#FFFFFF; }
+.wpsg_overview .garan_label_popup .garan_label_popup_image { min-height:0; overflow-y:auto; }
+.wpsg_overview .garan_label_popup .garan_label_popup_image img { max-width:100%; height:auto; }
+.wpsg_overview .garan_label_popup .garan_label_popup_confirm { flex:0 0 auto; margin-top:1rem; }
.wpsg_basket .wpsg_refreshbutton, .wpsg_checkout2button, .wpsg_basketbutton { float:left; padding:0.75em 1em; }
.wpsg_basket .wpsg_basket_weiter_shoppen {background:#1a1a1a none repeat scroll 0 0; border:0 none; border-radius:2px; color:#fff; font-weight:700; line-height:1; text-transform:uppercase; padding:0.85em 0.875em 0.78em;}
.wpsg_basket .product_action_printshop .label { align-self:flex-start; }
diff --git a/views/gfx/garan/legal_guarantee_notice_den.jpg b/views/gfx/garan/legal_guarantee_notice_den.jpg Binary files differnew file mode 100644 index 0000000..f06e62d --- /dev/null +++ b/views/gfx/garan/legal_guarantee_notice_den.jpg diff --git a/views/mods/mod_ordercondition/list.phtml b/views/mods/mod_ordercondition/list.phtml index 00f5535..d68b1f5 100644 --- a/views/mods/mod_ordercondition/list.phtml +++ b/views/mods/mod_ordercondition/list.phtml @@ -153,6 +153,12 @@ /* ]]> */</script>
+ <?php echo wpsg_drawForm_Checkbox('garan_exclude_'.$oc['id'], __('Schließt Gewährleistungslabel aus', 'wpsg'), $oc['garan_exclude'], array(
+ 'noHidden' => true,
+ 'inlineEdit' => true,
+ 'inlineEdit_url' => WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1&field=garan_exclude&oc_id='.$oc['id']
+ )); ?>
+
<div class="wpsg_mod_ordercondition_shipping_<?php echo $oc['id']; ?>" style="display:<?php echo (($oc['typ'] === '3')?'block':'none'); ?>;">
<?php echo wpsg_drawForm_TextStart(); ?>
<span class="wpsg_editable" id="oc_shipping_<?php echo $oc['id']; ?>"><?php
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml index edc0e3d..350c014 100644 --- a/views/warenkorb/overview.phtml +++ b/views/warenkorb/overview.phtml @@ -508,6 +508,38 @@ <div class="wpsg_spacer"></div>
<div class="wpsg_clear"></div>
+ <?php if (\wpsg\WarrantyLabel::isNeed()) { ?>
+ <?php if (\wpsg\WarrantyLabel::getLayout() === wpsg_ShopController::WARRANTYLABEL_INLINE) { ?>
+ <div class="garan_label_wrap">
+ <img src="<?php echo wpsg_ShopController::getShop()->getRessourceURL('gfx/garan/legal_guarantee_notice_den.jpg'); ?>" alt="<?php echo __('GARAN Gewährleistungslabel', 'wpsg'); ?>" />
+ </div>
+ <?php } else { ?>
+ <div class="garan_label_popup" id="wpsg_garan_label_popup">
+ <div class="garan_label_popup_inner">
+ <div class="garan_label_popup_image">
+ <img src="<?php echo esc_url(wpsg_ShopController::getShop()->getRessourceURL('gfx/garan/legal_guarantee_notice_den.jpg')); ?>" alt="<?php echo esc_attr(__('GARAN Gewährleistungslabel', 'wpsg')); ?>" />
+ </div>
+ <button type="button" class="garan_label_popup_confirm" id="wpsg_garan_label_popup_confirm"><?php echo __('Zur Kenntnis genommen', 'wpsg'); ?></button>
+ </div>
+ </div>
+ <noscript>
+ <style>.wpsg_overview .garan_label_popup { position:static; background-color:transparent; }</style>
+ </noscript>
+ <script>
+
+ const el_wpsg_garan_label_popup = document.getElementById('wpsg_garan_label_popup');
+ const el_wpsg_garan_label_popup_confirm = document.getElementById('wpsg_garan_label_popup_confirm');
+
+ el_wpsg_garan_label_popup_confirm.addEventListener('click', () => {
+
+ el_wpsg_garan_label_popup.style.display = 'none';
+
+ });
+
+ </script>
+ <?php } ?>
+ <?php } ?>
+
<input type="submit" class="wpsg_checkoutbutton" value="<?php echo __('zurück', 'wpsg'); ?>" name="wpsg_redirect_checkout" />
<?php if ($this->callMods('handle_order')) { ?>
|
