📙 For any Help, Contact me on Discord (@raideno).
Extend a Built-In Entity

Extend Built-In Entity

In this tutorial you'll learn how to extend medusa Built-In and have UI to customize those new fields.

Supported Entities

For now only this built-in entities are supported for extension

  • Product.
  • ProductCollection.

Let's Start

The tutorial is divised into several steps.

Goal: for illustration we have choosen to extend the Product Entity and add to it a Markdown Description field.

Extend The Built-In Entity

Create an entity file and extend the built-in entity.

Extend The Entity Validators

In order for the built-in entity to be updatable.

Create Migrations

To map the entity chnages into the database.

Use UI

Enjoy and experiment with the generated UI.

Retreive Fields From StoreFront

Fetch the data of the new fields you created.