gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
opencart 3.0.2, I want to add a new process when the order status has been changed to…
- User
opencart 3.0.2, I want to add a new process when the order status has been changed to complete.
- Assistant
To add a new process when the order status has been changed to complete in OpenCart 3.0.2, you can follow these steps:
- Log in to your OpenCart admin panel.
- Go to Extensions > Events.
- Click on the "+" button to create a new event.
- Fill in the fields as follows:
- Event: "catalog/model/checkout/order/editOrder/after"
- Action: "your_extension/your_custom_function"
- Status: Enabled
- Save the event.
Now, you need to create your custom function to perform the desired process. Here's an example of how to do it:
- Open the file "admin/controller/extension/your_extension.php".
- Create a new function inside the class, for example:
php