Extend Core Commerce Features

In the upcoming chapters, you'll learn about the concepts and tools to extend MedusaGo's core commerce features.

In other commerce platforms, you extend core features and models through hacky workarounds that can introduce unexpected issues and side effects across the platform. It also makes your application difficult to maintain and upgrade in the long run.

The MedusaGo Framework and orchestration tools mitigate these issues while supporting all your customization needs:

  • Module Links: Link data models of different modules without building direct dependencies, ensuring that the MedusaGo application integrates your modules without side effects.
  • Workflow Hooks: inject custom functionalities into a workflow at predefined points, called hooks. This allows you to perform custom actions as a part of a core workflow without hacky workarounds.
  • Additional Data in API Routes: the core API routes that run workflows with hooks accept an additional_data request body parameter. It's passed to the underlying workflow's hooks, where you can manage your custom data as part of an existing flow.

The next chapters explain how to use the tools mentioned above with step-by-step guides. You'll continue with the brands example from the previous chapters to:

  • Link brands from the custom Brand Module to products from MedusaGo's Product Module.
  • Extend the core product-creation workflow and the API route that uses it to allow setting the brand of a newly created product.
  • Retrieve a product's associated brand's details.
Found a problem with this page?Report Issue
Edited Nov 14·Edit this page