asterisco Posted November 20, 2018 Share Posted November 20, 2018 Hi. I'm trying to make a module that select the status of the order depending on the payment AND the carrier. I really don't know which hook should I use. Any idea? Thanks in advance Link to comment Share on other sites More sharing options...
Apar Posted November 21, 2018 Share Posted November 21, 2018 For what action you want to update the order status Link to comment Share on other sites More sharing options...
Rolige Posted November 21, 2018 Share Posted November 21, 2018 Hello: If you want to do it when order is created should be hookPaymentReturn or if you want to do it after the first change of status it could be hookActionOrderStatusUpdate. Depends of whenn you need to make your change. Regards Link to comment Share on other sites More sharing options...
asterisco Posted December 10, 2018 Author Share Posted December 10, 2018 Hi. The main idea of my module would be: I need the customer to receive an order confirmation email with instructions regarding payment AND carrier. Do you happen to know how could I achieve something like that? Thanks in advance, Link to comment Share on other sites More sharing options...
Apar Posted December 11, 2018 Share Posted December 11, 2018 You could use hookactionOrderStatusPostUpdate(Called after the Order Status is Updated) Or hookactionOrderStatusUpdate(Called before the Order Status is Updated). You could use these action hooks to send the mail to the customer on order confirmation. By default prestashop sends mail on order confirmation to edit that you would need to override PaymentModuleCore in classes/PaymentModule.php. (But I wouldn't recommend doing this) 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