Hello everyone
I have an Opencart 2.0.1.1 shop and I'm trying to execute a POST action after an order is completed. Practically I want to send the order shipping informations (name, address, etc...) to my external order management tool that accepts some REST API. I was able to send some static infos by editing the controller/checkout/success file. Anyway I have some strange problems of visualization due to an error regarding breadcrumbs and other unknown(for me) things. I read a lot of things and I think I should do something with the model/checkout/order file but I tried many things without success.
Does anyone know what should I try?
Thanks for your help
OC Version: 2.0.1.1
Theme: Journal2
I would consider to upgrade OC at this point since recent OC versions uses a feature called: events which is way more easier to achieve the goal of your request. Even with a use of an API, it could still be adapted on that level.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I think you should perform this action on success page, and this can be possible using Javascript/Ajax + php, you need to create a form on success page which will be auto submitted using JavaScript/Ajax on window load and your information will be sent to the page you are looking for.
I hope it helps.
I hope it helps.
Website designing & Development - https://webdesign-r.in
Indian Matrimonial sites - https://nikahmatrimonial.com
Even though an Ajax request would be created, the order_id key gets unset in the success page. With an event, the output can be used from a module called from the database in order to create last action events before the order_id gets officially unset.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 215 guests