Jump to content

How to get $params from validated order and execute some code after order


hakeryk2

Recommended Posts

Hello community,

 

I want to execute some code when order is validated but I want to have access to some data from order. How I can achieve that? In my case I want to add something to actionUpdateQuantity and actionValidateOrder hooks in my module but I don't know how I should call for parametrs like $id_product, $id_product_attribute, $quantity in 

 

 public function hookActionValidateOrder()

{

     //logic here with some vars that I would to know how to get

}

 

Any help will be very appreciated.

 

------------------------------------------

EDIT

------------------------------------------

 

I found this thread with very good explanation -> https://www.prestashop.com/forums/topic/276894-how-to-use-action-hooks/?do=findComment&comment=1392070 and this is very usefull as well -> http://doc.prestashop.com/display/PS15/Hooks+in+PrestaShop+1.5

Edited by hakeryk2 (see edit history)
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...