Create an apex class that implements the welisacommerce.IStockLevelProvider interface. How to do this you can find here. To configure the new apex class:
Go to Salesforce setup -> Custom Metadata Types -> Plugin Registrations -> 'Manage Records'.
Click 'New' and enter the name of the custom implementation.
Save.
Field label | Type | Description |
---|---|---|
Label | Text | The user friendly name of the registration |
Plugin Registration Name | Text | The technical name of the registration |
Class Name | Text | The class name of the custom implementation class |
Plugin | Reference | The specific plugin which the custom class implements |