diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-02 15:38:37 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-02 15:38:37 +0200 |
| commit | bba8383863e2bda87a3c54825b358d53b812b8e0 (patch) | |
| tree | 90f80ed42b2a2c402ff8149557c43db8ef586184 | |
| parent | 4c322420f5630313157839416bc7ae7235cbbf00 (diff) | |
Kasse: Zurück als Link im Modus „neu“
Die Zurück-Knöpfe speichern nichts; als Link mit Ziel im Text (Punkt 8.12).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | views/css/wpsg-theme.css | 2 | ||||
| -rw-r--r-- | views/warenkorb/checkout.phtml | 4 | ||||
| -rw-r--r-- | views/warenkorb/checkout2.phtml | 4 | ||||
| -rw-r--r-- | views/warenkorb/overview.phtml | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css index ff18c1c..98abfcb 100644 --- a/views/css/wpsg-theme.css +++ b/views/css/wpsg-theme.css @@ -173,6 +173,8 @@ .wpsg_checkout :where(.wpsg_checkoutblock .g-recaptcha) { float:right; margin-top:15px; } .wpsg_checkout :where(.wpsg_mandatoryfield_hint), .wpsg_checkout2 :where(.wpsg_mandatoryfield_hint) { margin-top:var(--wpsg-gap); } .wpsg_checkout :where(.wpsg_checkout2button) { float:right; } +/* Zurück als Link (Punkt 8.12): links, auf Höhe des Knopfs rechts */ +.wpsg-checkout__back { float:left; display:inline-block; padding:var(--wpsg-button-padding); padding-inline-start:0; color:inherit; } .wpsg_checkout :where(.wpsg_mod_ordervars), .wpsg_checkout :where(.wpsg_mod_shippingadress) { margin-bottom:var(--wpsg-gap); } .wpsg_checkout :where(.wpsg_mod_ordervars_field) { display:inline; } :where(.wpsg_checkout h2) { padding:10px 0; } diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml index 837c092..094e44c 100644 --- a/views/warenkorb/checkout.phtml +++ b/views/warenkorb/checkout.phtml @@ -393,7 +393,11 @@ <?php $this->ClearSessionErrors(); ?>
+ <?php if (\wpsg\ThemeStyle::isThemeMode()) { /* Modus „neu“: Zurück als Link, er speichert nichts (Punkt 8.12) */ ?>
+ <a class="wpsg-checkout__back" href="<?php echo esc_url($this->getURL(wpsg_ShopController::URL_BASKET)); ?>"><?php echo esc_html__('Zurück zum Warenkorb', 'wpsg'); ?></a>
+ <?php } else { ?>
<input type="submit" onclick="location.href='<?php echo esc_js($this->getURL(wpsg_ShopController::URL_BASKET)); ?>'; return false;" class="wpsg_button wpsg_basketbutton<?php echo wpsg_button_class(); ?>" value="<?php echo esc_attr__('zurück zum Warenkorb', 'wpsg'); ?>" name="wpsg_redirect_basket" />
+ <?php } ?>
<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_checkout2button<?php echo wpsg_button_class(); ?>" value="<?php echo esc_attr__('weiter', 'wpsg'); ?>" name="wpsg_checkout" />
<div class="wpsg_clear"></div>
diff --git a/views/warenkorb/checkout2.phtml b/views/warenkorb/checkout2.phtml index cb233d9..01b545c 100644 --- a/views/warenkorb/checkout2.phtml +++ b/views/warenkorb/checkout2.phtml @@ -102,7 +102,11 @@ <?php $this->callMods('checkout2_inner_prebutton', array(&$this->view)); ?>
<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_overviewbutton<?php echo wpsg_button_class(); ?>" value="<?php echo __('weiter', 'wpsg'); ?>" name="wpsg_checkout2" />
+ <?php if (\wpsg\ThemeStyle::isThemeMode()) { /* Modus „neu“: Zurück als Link, er speichert nichts (Punkt 8.12) */ ?>
+ <a class="wpsg-checkout__back" href="<?php echo esc_url($this->getURL(wpsg_ShopController::URL_CHECKOUT)); ?>"><?php echo esc_html__('Zurück zu den Kundendaten', 'wpsg'); ?></a>
+ <?php } else { ?>
<input type="submit" class="wpsg_button wpsg_checkoutbutton<?php echo wpsg_button_class(); ?>" value="<?php echo __('zurück', 'wpsg'); ?>" name="wpsg_redirect_checkout" />
+ <?php } ?>
<div class="wpsg_clear"></div>
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml index 6480af4..187b2ff 100644 --- a/views/warenkorb/overview.phtml +++ b/views/warenkorb/overview.phtml @@ -534,7 +534,11 @@ <?php } ?>
<?php } ?>
+ <?php if (\wpsg\ThemeStyle::isThemeMode()) { /* Modus „neu“: Zurück als Link, er speichert nichts (Punkt 8.12) */ ?>
+ <a class="wpsg-checkout__back" href="<?php echo esc_url($this->getURL(wpsg_ShopController::URL_CHECKOUT)); ?>"><?php echo esc_html__('Zurück zu den Kundendaten', 'wpsg'); ?></a>
+ <?php } else { ?>
<input type="submit" class="wpsg_checkoutbutton<?php echo wpsg_button_class(); ?>" value="<?php echo __('zurück', 'wpsg'); ?>" name="wpsg_redirect_checkout" />
+ <?php } ?>
<?php if ($this->callMods('handle_order')) { ?>
<input type="submit" class="wpsg_orderbutton<?php echo wpsg_button_class(); ?>" value="<?php echo __('zahlungspflichtig bestellen', 'wpsg'); ?>" name="wpsg_order" />
|
