Add Products page backed by the CRM products API + storefront catalog picker
Deploy Ladill Merchant / deploy (push) Successful in 30s

- New Products page (merchant.products.*) with full CRUD proxied to the Ladill
  CRM products API via a new CrmClient + config/crm.php (owner-scoped, type=product).
- Sidebar gains a Products entry.
- The new storefront form loads the merchant's catalog: each shop/menu section
  gets an "Add from products…" picker that drops a CRM product in as an item
  (name, price, description). Catalog fetch is resilient — empty if CRM is down.

Wires CRM_API_URL + CRM_API_KEY_MERCHANT on the merchant env (matches CRM).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-24 07:32:58 +00:00
co-authored by Claude Opus 4.8
parent 08d3c99996
commit b19e2654a1
12 changed files with 435 additions and 9 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
return [
'url' => rtrim((string) env('CRM_API_URL', 'https://crm.ladill.com/api'), '/'),
'key' => env('CRM_API_KEY_MERCHANT'),
'default_currency' => env('CRM_DEFAULT_CURRENCY', 'GHS'),
];