In Opencart there is functionality to automate sending order email to admin which we send to the customer after placing an order.
For Opencart 2.2
Follow the following steps to automate sending order emails to the admin:
- Open the admin panel and go to System -> Setting. On this page, you will see a store listing.
- Open a store in edit mode by clicking on the edit icon.
- Open the “Option” tab and check for “New Order Alert Mail” in the checkout section. Select the ‘Yes’ radio button and save.
Refer below screenshots
Note: Function add order history() in catalog/model/checkout/order.php file is used to send mail to mail to admin in. If you want to make any changes to the email then can make this function.
Search for ‘if ($this->config->get(‘config_order_mail’)) {‘ to find code to send mail to admin.
For Opencart 2.3
Follow the following steps to automate sending order emails to the admin:
- Open the admin panel and go to System -> Setting. On this page, you will see a store listing.
- Open a store in edit mode by clicking on the edit icon.
- Open the ‘mail’ tab and check for “Alert Mail” in the “Mail Alerts” section. Mark checkbox ‘orders’ and save.
Refer below screenshots
Note: Function addOrderHistory() in catalog/model/checkout/order.php file is used to send mail to mail to admin in. If you want to make any changes to the email then can make this function.
Search for ‘if (in_array(‘order’, (array)$this->config->get(‘config_mail_alert’))) {‘ to find code to send mail to admin.
In the End:
In order to enhance the functionality of your OpenCart store, Knowband offers a large selection of both free and paid OpenCart extensions. With a large variety of features available in these modules, the store admin can easily launch, develop, and grow their business. To know further about OpenCart Modules’ functionality and features, feel free to reach us at support@Knowband.com.