Jorge Carvalho Posted February 18, 2022 Share Posted February 18, 2022 Hi, I am new at prestashop (1 day only) and I was asked to send an order to an external resource. What I have done so far. 1) Created an module named orderHook with a function called hookactionValidateOrder 2) Registered it on my prestashop testing site My question is how to get the current order details? Many thanks for all kind help Jorge orderHook.php Link to comment Share on other sites More sharing options...
Piotr3qx Posted February 18, 2022 Share Posted February 18, 2022 Hey, did you try? public function hookActionValidateOrder($params) { $order = $params['order']; // Rest of a code... } 1 Link to comment Share on other sites More sharing options...
Jorge Carvalho Posted February 18, 2022 Author Share Posted February 18, 2022 18 minutes ago, Piotr3qx said: Hey, did you try? public function hookActionValidateOrder($params) { $order = $params['order']; // Rest of a code... } Hi Sir! No, I didn't. I am starting this from nothing and I don't know anything about prestashop. Going to try it now. I will post results. Many many thanks for your kind help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now