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.

Ships with Open Mercato 0.10.1

Enable it

In a new app:

  1. yarn mercato module enable @open-mercato/core --module customer_groups
  2. 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

  1. yarn mercato module enable @open-mercato/core --module currencies
  2. yarn mercato module enable @open-mercato/core --module dictionaries
  3. yarn mercato module enable @open-mercato/core --module catalog
  4. yarn mercato module enable @open-mercato/core --module progress
  5. yarn mercato module enable @open-mercato/core --module feature_toggles
  6. yarn mercato module enable @open-mercato/core --module customers
  7. yarn mercato module enable @open-mercato/core --module sales
  8. yarn mercato module enable @open-mercato/core --module customer_accounts
  9. yarn mercato module enable @open-mercato/core --module customer_groups
  10. 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

  • emitsecommerce.store.created
  • emitsecommerce.store.updated
  • emitsecommerce.store.deleted
  • emitsecommerce.store_domain_binding.created
  • emitsecommerce.store_domain_binding.updated
  • emitsecommerce.store_domain_binding.deleted
  • emitsecommerce.store_channel_binding.created
  • emitsecommerce.store_channel_binding.updated
  • emitsecommerce.store_channel_binding.deleted
  • emitsecommerce.store.branding_updated
  • emitsecommerce.store.misconfigured
  • emitsecommerce.assortment.empty_detected
  • subscribesecommerce.assortment.empty_detected
  • subscribesavailability.policy.*
  • subscribescatalog.category.*
  • subscribescatalog.price.*
  • subscribescatalog.product.*
  • subscribescatalog.variant.*
  • subscribescustomer_groups.group.*
  • subscribescustomer_groups.membership.*
  • subscribescustomer_groups.terms.updated
  • subscribescustomer_accounts.user.deleted
  • subscribescustomer_accounts.user.updated
  • subscribescustomer_accounts.domain_mapping.replaced
  • subscribescustomer_accounts.domain_mapping.*
  • subscribessales.channel.*
  • subscribesecommerce.store.*
  • subscribesecommerce.store_channel_binding.*
  • subscribesecommerce.store_domain_binding.*
  • subscribesecommerce.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.