Recipe versioning, inline recipe create, recipe summary, Shopify description
Deploy / deploy (push) Successful in 15s
Deploy / deploy (push) Successful in 15s
- Add version + product_id to recipes table (migration) - Recipe select shows version label (e.g. "Kurkuma v2") - Creating recipe from product page pre-fills product name, auto-increments version - Recipe ingredient summary shown read-only below the select - Remove package_content field (redundant with recipe ingredients) - Pull product description from Shopify body_html on import - Update existing products with empty description on re-import Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
6e28984278
commit
a7f5c4a83e
6 files changed
+74
-10
No files matched your search
@@ -58,7 +58,7 @@ class ShopifyImport extends Command
|
||||
|
||||
$product = Product::firstOrCreate(
|
||||
['title' => $variant['product_title']],
|
||||
['recipes_id' => null],
|
||||
['recipes_id' => null, 'description' => $variant['product_description']],
|
||||
);
|
||||
if ($product->wasRecentlyCreated) {
|
||||
$stats['products']++;
|
||||
@@ -67,6 +67,8 @@ class ShopifyImport extends Command
|
||||
'product' => $product,
|
||||
'image_urls' => $variant['image_urls'],
|
||||
];
|
||||
} elseif (empty($product->description) && ! empty($variant['product_description'])) {
|
||||
$product->update(['description' => $variant['product_description']]);
|
||||
}
|
||||
|
||||
$size = ProductSize::firstOrCreate(
|
||||
|
||||
Reference in new issue
Block a user