Prestashop payment module override -
i have 1 problem regarding module override. have created custom payment module learning purpose , want change cart amount total placed order. $this->module->validateorder
gives error amount. there way override validateorder function of paymentmodulecore class ?
you can create own class , override function, example :
class mypaymentmodule extends paymentmodule { public function validateorder($id_cart, $id_order_state, $amount_paid, $payment_method = 'unknown', $message = null, $extra_vars = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false, shop $shop = null) { // code } }
and module extends mypaymentmodule, not paymentmodule.
Comments
Post a Comment