adjust deliveries by customer

This commit is contained in:
ludo
2023-12-11 21:07:49 +01:00
parent 71ecb13af0
commit 0ff39c1401
8 changed files with 108 additions and 80 deletions

View File

@@ -44,7 +44,8 @@ class OrderController extends Controller
$data = [
'customer' => $customer ? $customer->toArray() : false,
'basket' => Baskets::getBasketTotal(),
'deliveries' => Deliveries::getAllWithSaleChannel()->toArray(),
// 'deliveries' => Deliveries::getAllWithSaleChannel()->toArray(),
'deliveries' => Deliveries::getByCustomer()->toArray(),
'delivery_types' => DeliveryTypes::getWithPrice(Baskets::getWeight()),
];