/
Create New Module (1h)
Create New Module (1h)
Create new module in Magestore POS
Create folder : <Module name> in extension folder
Create etc/config.js file
import ModuleConfigAbstract from "../../ModuleConfigAbstract";
class Config extends ModuleConfigAbstract{
module = ['reward-points'];
menu = {};
observer = (() => {
}
reducer = {};
rewrite = {
};
plugin = {
};
layout = {
};
}
export default (new Config());
Run:
npm run upgrade
After run, check modules.json to make sure the module installed:
Exercise: Tạo 1 module và chạy thử run upgrade
, multiple selections available,
Related content
Magestore POS Customization
Magestore POS Customization
Read with this
How to add a new Earning Rate
How to add a new Earning Rate
More like this
Menu and Component (4h)
Menu and Component (4h)
Read with this
Reward point
Reward point
More like this
Add New Reducer (4h)
Add New Reducer (4h)
Read with this
How to add a new spending rate
How to add a new spending rate
More like this