How can we use opencart events?
问题 I have searched a lot about opencart triggers but didn't find a proper example. In opencart 2.0 there are triggers on which developer can hook function and perform something just like wordpress action and filters i guess. For example in catalog/model/checkout/order.php there is a trigger $this->event->trigger('post.order.history.add', $order_id) Can someone help me to hook my function on the above trigger? 回答1: Important Note: this answer applies to OC >2.0.x.x and <2.2.x.x. The problem here