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:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user