Jump to content

Action on the Order before render the information [SOLVED]


thiegui

Recommended Posts

Hi everyone,

I need to cancel an order, with code, under certain circumstances, before show the information about it.

Where is the best way to do it?
I guess this is the file: controllers/admin/AdminOrdersController.php but I'm not sure how to do it.

Thanks in advance!

Edited by thiegui
Solved (see edit history)
Link to comment
Share on other sites

Depending on the business logic to be implemented, the best way to implement it would be through a module that runs on a hook.
for example if you want to register the order but that this is concelebrated according to a business logic to be applied you can use

actionOrderStatusUpdateBefore. 


If it is necessary to validate the registration or not of an order you can use

actionValidateOrder

 

  • Like 1
Link to comment
Share on other sites

  • thiegui changed the title to Action on the Order before render the information [SOLVED]

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...