Load CRM catalog on the storefront edit form so products can be added
Deploy Ladill Merchant / deploy (push) Successful in 24s
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:
co-authored by
Claude Opus 4.8
parent
80968954d1
commit
6119ba3dae
@@ -128,6 +128,7 @@ class StorefrontController extends Controller
|
||||
return view('merchant.storefronts.show', [
|
||||
'qrCode' => $storefront->fresh(),
|
||||
'previewDataUri' => $this->imageGenerator->previewDataUri($storefront),
|
||||
'catalog' => $this->catalogProducts(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user