Product Catalog

catalog in @open-mercato/core

Configurable catalog for products, variants, and pricing used by the sales module.

Ships with Open Mercato 0.10.1

On in a new app. Nothing to enable.

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

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 13 TABLES · 9 PERMISSIONS · EMITS 18 EVENTS

Data

  • catalog_product_option_schemas
  • catalog_products
  • catalog_product_unit_conversions
  • catalog_product_categories
  • catalog_product_category_assignments
  • catalog_product_tags
  • catalog_product_tag_assignments
  • catalog_product_offers
  • catalog_product_variants
  • catalog_product_variant_relations
  • catalog_price_kinds
  • catalog_product_variant_prices
  • catalog_price_history_entries

API

Routes are not listed for built-in modules.

Security

catalog.

  • products.view
  • products.manage
  • categories.view
  • categories.manage
  • variants.manage
  • pricing.manage
  • settings.view
  • settings.manage
  • price_history.view

Events

catalog.

  • emitsproduct.created
  • emitsproduct.updated
  • emitsproduct.deleted
  • emitsproduct.stock_low
  • emitsproduct_unit_conversion.created
  • emitsproduct_unit_conversion.updated
  • emitsproduct_unit_conversion.deleted
  • emitscategory.created
  • emitscategory.updated
  • emitscategory.deleted
  • emitsvariant.created
  • emitsvariant.updated
  • emitsvariant.deleted
  • emitsprice.created
  • emitsprice.updated
  • emitsprice.deleted
  • emitspricing.resolve.before
  • emitspricing.resolve.after
  • subscribesproduct.stock_low
  • subscribescategory.deleted
  • subscribescategory.updated

UI

  • 12 backend pages

Background

  • 3 workers
  • 5 CLI commands

AI

  • 29 AI tools
  • 2 AI agents

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.