Jump to content

Validation Before Status Update


tmzwinkels

Recommended Posts

Hi,

 

Need : call an external webservice when status is updated from admin order page. Verify the result. If OK, update the status in database, if NOK, show an error message in admin order page.

 

At the moment I'm able to catch status update, with actionOrderStatusUpdate, I can make my call to webservice and get the response, but I'm not able to show a message on Admin order page. (using $this->context->smarty->assign($var, $val);)

 

I'm also not able to interupt the status update in database when result was NOK. Could someone tell me how this is done ? Should we be able to hook into this or block it from executing ? I dont think using actionOrderStatusPostUpdate after, to update the status depending of the result is a nice solution.

 

PrestaShop version 1.6.1.1

 

Many thanks,

 

Tim

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...