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
@@ -25,7 +25,7 @@ class ShopifyService
|
||||
public function getAllVariants(): array
|
||||
{
|
||||
$variants = [];
|
||||
$url = "{$this->baseUrl}/products.json?limit=250&fields=id,title,variants,images";
|
||||
$url = "{$this->baseUrl}/products.json?limit=250&fields=id,title,body_html,variants,images";
|
||||
|
||||
while ($url) {
|
||||
$response = Http::withHeader('X-Shopify-Access-Token', $this->token)->get($url);
|
||||
@@ -55,9 +55,10 @@ class ShopifyService
|
||||
'sku' => $variant['sku'] ?? '',
|
||||
'price' => (float) ($variant['price'] ?? 0),
|
||||
'inventory_quantity' => (int) ($variant['inventory_quantity'] ?? 0),
|
||||
'product_title' => $product['title'],
|
||||
'option1' => $variant['option1'] ?? '',
|
||||
'image_urls' => $imageUrls,
|
||||
'product_title' => $product['title'],
|
||||
'product_description' => strip_tags($product['body_html'] ?? ''),
|
||||
'option1' => $variant['option1'] ?? '',
|
||||
'image_urls' => $imageUrls,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user