feat: refactor product variant handling to use product pricing and remove unnecessary fields
This commit is contained in:
@@ -200,11 +200,7 @@ class ProductCatalogFromImagesSeeder extends Seeder
|
||||
];
|
||||
|
||||
$this->productService->createVariant($product, [
|
||||
'slug' => $metadata['product_slug'].'-'.Str::slug((string) $size),
|
||||
'nombre' => $metadata['product_name'].' - Talle '.$size,
|
||||
'stock' => $pricing['stock'],
|
||||
'descripcion' => $metadata['description'],
|
||||
'precio' => $pricing['price'],
|
||||
'definitions' => $definitions,
|
||||
'images' => $images,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user