Refine design (less clunky, fully mobile-friendly), seed only Fidget Toys, Pokemon & Film popculture, and add direct custom model ordering

This commit is contained in:
2026-10-31 16:45:39 +01:00
parent fdf768b352
commit d55cb97bfd
12 changed files with 1185 additions and 711 deletions
+10 -2
View File
@@ -78,10 +78,18 @@ class CheckoutController extends Controller
]);
foreach ($cart as $item) {
$productName = $item['name'];
if (! empty($item['custom_model_url'])) {
$productName .= ' (Link: '.$item['custom_model_url'].')';
}
if (! empty($item['custom_file_name'])) {
$productName .= ' [Bestand: '.$item['custom_file_name'].']';
}
OrderItem::create([
'order_id' => $order->id,
'product_id' => $item['id'],
'product_name' => $item['name'],
'product_id' => $item['id'] ?? null,
'product_name' => $productName,
'material' => $item['material'] ?? null,
'color' => $item['color'] ?? null,
'scale' => $item['scale'] ?? '100%',