Totti Posted December 19, 2013 Share Posted December 19, 2013 I purchased a module in the validation phase of the 'buy me from this problem. Link to comment Share on other sites More sharing options...
vekia Posted December 19, 2013 Share Posted December 19, 2013 error code means that validateBankWireDiscountOrder() function doesn't exist. unfortunately, you said that it's a paid module, so it's hard to help without na access to sources. why not to ask module developer? Link to comment Share on other sites More sharing options...
Totti Posted December 20, 2013 Author Share Posted December 20, 2013 Unfortunately not all serious like you, I do not respond. I did a search but the module exists. PaymentModule.php Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 can you show what you've got in validation.php file? just wondering if the paymentmodule class is correctly inserted there Link to comment Share on other sites More sharing options...
Totti Posted December 20, 2013 Author Share Posted December 20, 2013 can you show what you've got in validation.php file? just wondering if the paymentmodule class is correctly inserted there Thanks. validation.php Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 ok, thank you. for the first i just want to say that module isn't fully compatibile with prestashop 1.5 (it uses old method to create .php pages) the problem is with this code: $bankwire->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); $bankwire variable is an instance of module class in bakwirediscount.php file. can you check if this file includes PaymentModule.php file? you can also try to use this code in validation.php: (right after other includes) (im not sure if this will work) include(dirname(__FILE__).'/PaymentModule.php'); (i don't know exact path to this file) then instead of $bankwire->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); try to use this: $bankwirepm = new PaymentModule(); $bankwirepm->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); 1 Link to comment Share on other sites More sharing options...
Totti Posted December 20, 2013 Author Share Posted December 20, 2013 ok, thank you. for the first i just want to say that module isn't fully compatibile with prestashop 1.5 (it uses old method to create .php pages) the problem is with this code: $bankwire->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); $bankwire variable is an instance of module class in bakwirediscount.php file. can you check if this file includes PaymentModule.php file? you can also try to use this code in validation.php: (right after other includes) (im not sure if this will work) include(dirname(__FILE__).'/PaymentModule.php'); (i don't know exact path to this file) then instead of $bankwire->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); try to use this: $bankwirepm = new PaymentModule(); $bankwirepm->validateBankwireDiscountOrder($cart->id,Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); v2.1-bankwirediscount.zip Link to comment Share on other sites More sharing options...
Totti Posted December 23, 2013 Author Share Posted December 23, 2013 Help me ! Link to comment Share on other sites More sharing options...
Totti Posted December 27, 2013 Author Share Posted December 27, 2013 Veika help me ! Link to comment Share on other sites More sharing options...
Alex Sanchez Posted July 1, 2016 Share Posted July 1, 2016 Any help with this module please? Link to comment Share on other sites More sharing options...
sabrinabookart Posted January 19, 2017 Share Posted January 19, 2017 Hello! I solved this issue! First: Edit validation.php: $bankwire->validateBankwireDiscountOrder($cart->id, _PS_OS_BANKWIRE_, $total, $bankwire->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key, NULL); (put the last parameter ,NULL, on call function). Second: On PaymentModule.php Copy all implementation of function validateBankwireDiscountOrder (Ctrl + C) Third: Paste all this function on botton of BankWireDiscount.php file. (Ctrl + V) Fourth: On BankWireDiscount.php change this: class BankWireDiscount extends PaymentModule to this: class BankWireDiscount extends PaymentModuleCore That´s it! Now it works!!!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts