Ecommerce Stores
ecommerce in @open-mercato/core
Storefront definition, hostname and sales-channel binding, buyer-context resolution and per-store branding for the public storefront API.
- Built-in
- Orders & Checkout
Ships with Open Mercato 0.10.1
Enable it
In a new app:
yarn mercato module enable @open-mercato/core --module customer_groups yarn mercato module enable @open-mercato/core --module ecommerce
Run them in this order: each module needs the ones before it.
In an app from the empty preset
yarn mercato module enable @open-mercato/core --module currencies yarn mercato module enable @open-mercato/core --module dictionaries yarn mercato module enable @open-mercato/core --module catalog yarn mercato module enable @open-mercato/core --module progress yarn mercato module enable @open-mercato/core --module feature_toggles yarn mercato module enable @open-mercato/core --module customers yarn mercato module enable @open-mercato/core --module sales yarn mercato module enable @open-mercato/core --module customer_accounts yarn mercato module enable @open-mercato/core --module customer_groups yarn mercato module enable @open-mercato/core --module ecommerce
Run them in this order: each module needs the ones before it.
Then run yarn generate. Core is already installed, so nothing is downloaded.
Anatomy
ADDS 3 TABLES · 5 PERMISSIONS · EMITS 12 EVENTS
Data
ecommerce_stores ecommerce_store_ domain_ bindings ecommerce_store_ channel_ bindings
API
Routes are not listed for built-in modules.
Security
ecommerce.
stores.view stores.manage branding.manage domains.manage channels.manage
Events
- emits
ecommerce.store .created - emits
ecommerce.store .updated - emits
ecommerce.store .deleted - emits
ecommerce.store_ domain_ binding .created - emits
ecommerce.store_ domain_ binding .updated - emits
ecommerce.store_ domain_ binding .deleted - emits
ecommerce.store_ channel_ binding .created - emits
ecommerce.store_ channel_ binding .updated - emits
ecommerce.store_ channel_ binding .deleted - emits
ecommerce.store .branding_ updated - emits
ecommerce.store .misconfigured - emits
ecommerce.assortment .empty_ detected - subscribes
ecommerce.assortment .empty_ detected - subscribes
availability.policy .* - subscribes
catalog.category .* - subscribes
catalog.price .* - subscribes
catalog.product .* - subscribes
catalog.variant .* - subscribes
customer_groups .group .* - subscribes
customer_groups .membership .* - subscribes
customer_groups .terms .updated - subscribes
customer_accounts .user .deleted - subscribes
customer_accounts .user .updated - subscribes
customer_accounts .domain_ mapping .replaced - subscribes
customer_accounts .domain_ mapping .* - subscribes
sales.channel .* - subscribes
ecommerce.store .* - subscribes
ecommerce.store_ channel_ binding .* - subscribes
ecommerce.store_ domain_ binding .* - subscribes
ecommerce.store .misconfigured
UI
2 backend pages
Not present: background jobs, AI tools.
Not read: credentials and env, hosts (not in module-facts.v2.json).
From module-facts.v2.json in @open-mercato/cli 0.10.1. Read statically, not executed.