The message is important to say which action done on the page and sometimes you are doing customization and you want to display error, warning or information, you need to display the message which inform user about action.
so,Let’s understand the code:
you can write error message like following code:
$erroe_message = array('content' =>'
content is the message you want to display and
type is the type of message and type can be:
E - error W - warning I - Information
Dialog message will display only one time on next page after the first redirect.
After displaying message, if you want to redirect the other page, you can write below line of code:
That’s it.I hope this article is useful to someone.
Don’t hesitate to use this code in your xCart projects and post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.