Load CRM catalog on the storefront edit form so products can be added
Deploy Ladill Merchant / deploy (push) Successful in 24s

The storefront editor has an 'Add from products' picker (+ per-item photo
upload), but the edit page (storefronts.show) never passed the CRM $catalog to
editor-fields, so the picker was hidden (x-show=catalog.length) — there was no
way to add products to an existing storefront. show() now loads catalogProducts()
and forwards it to the editor, matching the create form.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-26 09:51:22 +00:00
co-authored by Claude Opus 4.8
parent 80968954d1
commit 6119ba3dae
2 changed files with 2 additions and 1 deletions
@@ -128,6 +128,7 @@ class StorefrontController extends Controller
return view('merchant.storefronts.show', [
'qrCode' => $storefront->fresh(),
'previewDataUri' => $this->imageGenerator->previewDataUri($storefront),
'catalog' => $this->catalogProducts(),
]);
}