Hello, i am trying to find the code block where call is made if admin selects notify on order status update.
Admin history update block calls : index.php?route=api/order/history
From here function history check for order info and calls
$this->model_checkout_order->addOrderHistory
function addOrderHistory updates order history, in this whole process json data is updated and returned back to calling page. Admin page will show message if success and status is updated. In this process i did not found any code block that calls mail order page for sending mail if notify is selected. But mail is being sent.
i want to find out the exact code that calls mail function if notify is selected. Can someone help me with this.
Thanks
You need to create an event for this. See documentation: https://github.com/opencart/opencart/wiki/Events-System
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The mail notify is controlled by an event on addOrderHistroy
https://github.com/opencart/opencart/bl ... /order.php
Trigger
catalog/model/checkout/order/addOrderHistory/before
Action
mail/order
You can view your events in the Admin -> Extensions -> Events and further read on what @straightlight linked for usage.
https://github.com/opencart/opencart/bl ... /order.php
Trigger
catalog/model/checkout/order/addOrderHistory/before
Action
mail/order
You can view your events in the Admin -> Extensions -> Events and further read on what @straightlight linked for usage.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Who is online
Users browsing this forum: No registered users and 531 guests