Wish good beginng of a week,
So i made a plugin opencart for 3.0.3.2
i want when i add to customer reward point with that + icon i call a function called process the process function is in my plugin controller which the name is ControllerExtensionModuleMembership ,
so i have looked for addReward() function and i found it in admin/controller/sale/order.php add this code
Code: Select all
$this->load->controller('extension/module/membership');
$json['body'] = $this->controller_extension_module_membership->process($order_info['customer_id'], (int) $order_info['reward']);
what should do where is the problem please thank you!