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, and published_at
  • normalizes variants and originalVariants
  • auto-detects inventoryMode

Key editing areas

  • media, slug, category
  • language, SKU, status, brand, code, SEO
  • prices and variants
  • content
  • custom product config

Important variant note

The source supports two inventory modes:

  • global
  • per_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.