feat: refactor product variant handling to use product pricing and remove unnecessary fields

This commit is contained in:
2026-06-30 15:58:19 -03:00
parent 8b10996319
commit fdeba7540b
10 changed files with 5 additions and 56 deletions

View File

@@ -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,
]);