diff --git a/modules/website_cashdesk.php b/modules/website_cashdesk.php index 68fb9c1..6757418 100644 --- a/modules/website_cashdesk.php +++ b/modules/website_cashdesk.php @@ -345,7 +345,11 @@ class website_cashdesk { $this->manage_errors(); $this->manage_data_persistence(); - // customer info + // customer info -- 18.09.2026: in der Kasse editierbar, ein POST (auch bei + // Fehlern im Formular) aktualisiert die Session, die Bestellung nimmt $_POST (s.u.) + if (isset($_POST['customer_info'])) { + $_SESSION['customer_info'] = trim((string)$_POST['customer_info']); + } if (isset($_SESSION['customer_info']) && $_SESSION['customer_info']) { $this->layout_object->assign('customer_info', $_SESSION['customer_info']); } diff --git a/modules/website_shoppingcart.php b/modules/website_shoppingcart.php index 335df12..55524f5 100644 --- a/modules/website_shoppingcart.php +++ b/modules/website_shoppingcart.php @@ -48,7 +48,21 @@ class website_shoppingcart { private function show_shoppingcart() { if (isset($_POST['customer_info'])) { - $_SESSION['customer_info'] = $_POST['customer_info']; + $_SESSION['customer_info'] = trim((string)$_POST['customer_info']); + } + + // 18.09.2026 -- Warenkorb ist EIN Formular: "Zur Kasse" und die Express-Knoepfe schicken + // es ab (Mengen + Anmerkung werden so mitgespeichert) und das Ziel steht in cart_goto. + if (isset($_POST['cart_goto']) && $_POST['cart_goto'] !== '') { + $goto = (string)$_POST['cart_goto']; + if ($goto === 'kasse') { + header('Location: /Kasse/'); + exit; + } + if (preg_match('/^express:([a-z0-9_]{1,40})$/', $goto, $m)) { + header('Location: /Kasse/?payment_express_start='.$m[1]); + exit; + } } if (isset($_SESSION['customer_info']) && $_SESSION['customer_info']) { diff --git a/themes/easyshop_advanced/templates/content_cash_desk/customer_info.tpl b/themes/easyshop_advanced/templates/content_cash_desk/customer_info.tpl index e39d8af..f0ba307 100644 --- a/themes/easyshop_advanced/templates/content_cash_desk/customer_info.tpl +++ b/themes/easyshop_advanced/templates/content_cash_desk/customer_info.tpl @@ -1,14 +1,12 @@ - -
Ihr Warenkorb ist leer.
+ + {/if} +