User Statistik

This commit is contained in:
Kevin Adametz 2026-05-18 17:23:28 +02:00
parent 70240d2b6a
commit 53bdba33cd
24 changed files with 2633 additions and 9 deletions

View file

@ -87,6 +87,7 @@ class CheckoutController extends Controller
'is_for' => $is_for,
'is_abo' => $is_abo,
'abo_interval' => $abo_interval,
'customer_order_source_options' => ShoppingOrder::customerOrderSourceOptions(),
'shopping_data' => $shopping_data,
'user_shop' => Util::getUserShop(),
'shopping_user' => $shopping_user,
@ -225,6 +226,11 @@ class CheckoutController extends Controller
'accepted_data_checkbox' => 'accepted',
];
if (Request::get('is_from') === 'shopping') {
$rules['customer_order_source'] = 'required|in:'.implode(',', array_keys(ShoppingOrder::customerOrderSourceOptions()));
$rules['customer_order_source_comment'] = 'nullable|string|max:500';
}
if (Request::get('same_as_billing')) {
$rules = array_merge($rules, [
'shipping_firstname' => 'required',