Update Product
Update Product
The Update screen reuses the main product form but loads existing data and normalizes it before editing.
What the source does on load
- fetches product detail by
uuid - applies
setForm - rebuilds
category_id,prices, andpublished_at - normalizes
variantsandoriginalVariants - auto-detects
inventoryMode
Key editing areas
- media, slug, category
- language, SKU, status, brand, code, SEO
- prices and variants
- content
customproduct config
Important variant note
The source supports two inventory modes:
globalper_storage
If a variant is not in per_storage, the submit payload removes inventory_stocks.
Difference from create
The update flow must preserve existing variants, categories, and config while still accepting partial edits. That makes it easier to introduce unintended payload changes if the operator is not careful.

