The support of message notifications to the customers about the events have been provided by StoreHippo platform.
StoreHippo provides you with well-defined messages for all the important events. However, you can also add custom messages of your choice.
Go to the Advance Settings > Messages section in StoreHippo Admin Panel to access messages.
To add new custom messages, click on Add New button in the top right corner. The following form appears:
The name of the message.
The message that you want to display on the storefront.
The messages can be added to the API response using hooks or in custom commands handler. Both the hooks and custom command provide a response object that has a method called addMessage. It takes 3 arguments which are message name, level and the parameters.
addMessage(
}
function(req,res,next){
if(!req.data.test){
res.addMessage("mycustommessage","error");
}
next();
}