truetaurus Posted July 11, 2018 Share Posted July 11, 2018 Hi, I am working with Prestashop 1.7. I have been trying to find some documentation/workflow diagram that could best show the flow in creating an order - from adding customer details to paying and confirming the order. But I have not found anything. I basically need this info to decide where to hook in as when I make an order in one shop, it should send the order to another shop/external api. Does anyone know of any good diagrams that show the flow? Or know where I would have to hook in? Like after payment mainly I guess. Thanks Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted July 11, 2018 Share Posted July 11, 2018 (edited) Hi.. use "orderConfirmation" hook in presashop public function hookOrderConfirmation($params) { //ordata here } Edited July 11, 2018 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
truetaurus Posted July 12, 2018 Author Share Posted July 12, 2018 But is that after payment? So someone pays with creditcard and then that is ran? Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted July 12, 2018 Share Posted July 12, 2018 Hi.. this hook call when you order is conforim or use this hook "actionValidateOrder" this hook call when order is valid in prestashop here is list of all hookhttp://doc.prestashop.com/display/PS17/Hooks+in+PrestaShop+1.7.x Thanks Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted July 13, 2018 Share Posted July 13, 2018 On 7/12/2018 at 1:23 PM, truetaurus said: But is that after payment? So someone pays with creditcard and then that is ran? Yes someone pay with creditcard then also run hook 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