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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -