eriqx Posted July 16, 2013 Share Posted July 16, 2013 Hi, I have custom tab added in Admin Product page via module. I am using hookActionProductUpdate to validate and process data. Now I need to display error message when something went wrong but I don't know how. Right now when I hit save and stay the message says Update was successful, there I need to show my custom error message. Can someone help me? Thanks Link to comment Share on other sites More sharing options...
Enrique Gómez Posted September 19, 2013 Share Posted September 19, 2013 I'm using throw new PrestaShopException("my message"); inside the hookActionProductUpdate and it works well for me. It shows "my message" in the errors box. Link to comment Share on other sites More sharing options...
Recommended Posts