summaryrefslogtreecommitdiff
path: root/views/mods/mod_ordercondition/overview_top.phtml
diff options
context:
space:
mode:
authordaniel <noreply@maennchen1.de>2026-09-24 10:49:44 +0200
committerdaniel <noreply@maennchen1.de>2026-09-24 10:49:44 +0200
commit19a8938fa3b41a6c6ed1e15c20586f860f4a637b (patch)
tree353780fc47092183e6825bde59435208377bdb38 /views/mods/mod_ordercondition/overview_top.phtml
parentca5fd820c76aa73f64c9ca7966bac32a89ac9248 (diff)
- Feature: PHP 8.3 Kompatibilität
- Feature: SmartCheckout - Ersatz für EinSeitenCheckout - Feature: Optik im Frontend an moderne Themes angepasst
Diffstat (limited to 'views/mods/mod_ordercondition/overview_top.phtml')
-rw-r--r--views/mods/mod_ordercondition/overview_top.phtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/mods/mod_ordercondition/overview_top.phtml b/views/mods/mod_ordercondition/overview_top.phtml
index 3ad7b70..1c3d832 100644
--- a/views/mods/mod_ordercondition/overview_top.phtml
+++ b/views/mods/mod_ordercondition/overview_top.phtml
@@ -7,11 +7,14 @@
// Die Mindestlänge, damit der Text in einer Scrollbox angezeigt wird
$minLength = 1000;
+ // Bereits akzeptierte Bestellbedingungen, z.B. nach der Rückkehr von PayPal
+ $arAccepted = $this->getAcceptedConditions($this->view['basket']??null);
+
?>
<?php foreach ($this->view['wpsg_mod_ordercondition']['data'] as $oc) { ?>
<div class="wpsg_agb" id="wpsg_agb_<?php echo $oc['id']; ?>">
<label>
- <input type="checkbox" value="1" name="wpsg_mod_ordercondition[<?php echo $oc['id']; ?>]" required />
+ <input type="checkbox" value="1" name="wpsg_mod_ordercondition[<?php echo $oc['id']; ?>]" required <?php echo ((in_array(strval($oc['id']), $arAccepted['ordercondition'], true))?'checked="checked"':''); ?> />
<?php if (strlen($oc['text']) < $minLength) { ?>
<?php echo $oc['text']; ?>
<?php } else { ?>