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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -