markoatonc Posted September 22, 2017 Share Posted September 22, 2017 (edited) I am trying to adapt a module for review-opinion system to work with 1.7 The module was provided by the review service, but it is for 1.6.The module should be called on order confirmation page and send the order ID, customer email, and product list to the specified externar service.The first issue was The hook it was trying to attach to. "hookdisplayOrderConfirmation"The one tat seemed to be called during confirmation window was "hookdisplayOrderConfirmation2" so I changed that. But there is another issue, The module seems to be getting data from: $order = $params['objOrder'] objOrder seems to not exist, I see on the prestashop build notes that it was replaced by "order" But replacing it still gives me "Undefined index: order" error.Can anyone point me in proper direction how can this be fixed? The providers of original module told me to "contact the author of your store software" which is idiotic, but I kind of DO want to get that module working. Edited September 22, 2017 by markoatonc (see edit history) Link to comment Share on other sites More sharing options...
markoatonc Posted September 22, 2017 Author Share Posted September 22, 2017 as with all problem,s I seem to got a it fixedr right AFTER asking for help. I switched it back to "hookdisplayOrderConfirmation" . And got it to work by changing it to the "order"... $orderdata = $params['order'] Topic can be closed/deleted. Link to comment Share on other sites More sharing options...
TWP Posted March 13, 2018 Share Posted March 13, 2018 Hi markoatonc, you can correctly report the change to be performed. Thank you 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