Entities are basic building blocks of the store. There is one entity for the same type of resource e.g. product, order, user etc.
There are two types of entities:
StoreHippo provides the global pre-defined entities for common functionalities. Global entities are namespaced with (ms.) to separate them from store entities. Examples of global entities are:
To add a new entity, click the Add New button in the top right corner. The following page will open:
Enter the name of the entity that you want to create.
Below the entity name field, there is a table which lists down the fields that are part of this entity.
Enter the name of the field in the Name column.
Select the data type of the field in the Type column. Following are the possible data types for the field:
Click on the gear icon against the field to edit the field settings.
Go to the Settings tab to access the entity settings like general entity and admin theme settings.
You can also define hooks in your entity by adding it in the hooks tab.
There are built-in entity commands (get, list, add, edit, delete etc.) available for all entities. Apart from built-in commands, there are custom commands for different entities. For example, the Order entity has commands receivePayment, ship etc.