istox Posted February 1, 2012 Share Posted February 1, 2012 Hello to everyone! I searched the forum about my problem. But really no solution was found about my problem. I have 2 carriers. And I have 5 payments modules. How I can disable 1 payment module for the 2nd carrier? Or 2nd carrier if customer choose COD module? Earlier there was a code in classes/modules.php which disabled the carrier id for the payment module COD. if ($result) foreach ($result AS $k => $module) if (($moduleInstance = Module::getInstanceByName($module['name'])) AND is_callable(array($moduleInstance, 'hookpayment'))) if ($module['name'] != 'cashondelivery' OR ($module['name'] == 'cashondelivery' AND $cart->id_carrier != 2)) But for me it is not working now on presta 1.4.4.1. May be there is other solutions or code? Link to comment Share on other sites More sharing options...
shacker Posted February 1, 2012 Share Posted February 1, 2012 use the free module ship2pay, that let you assign a carrier to a payment module Link to comment Share on other sites More sharing options...
istox Posted February 7, 2012 Author Share Posted February 7, 2012 I found this module for version 1.4. The module don't want to work with my version 1.4.4.1 Link to comment Share on other sites More sharing options...
istox Posted February 7, 2012 Author Share Posted February 7, 2012 Yes. Tried one more time! Working ! Thanks! Link to comment Share on other sites More sharing options...
shacker Posted February 7, 2012 Share Posted February 7, 2012 your welcome . change title to solved Link to comment Share on other sites More sharing options...
istox Posted February 24, 2012 Author Share Posted February 24, 2012 http://www.prestashop.com/forums/topic/27357-ship2pay-module-contribution-shows-payment-methods-depends-on-shipping/page__st__160 Link to comment Share on other sites More sharing options...
istox Posted February 24, 2012 Author Share Posted February 24, 2012 1.4.7 version solution http://www.prestashop.com/forums/topic/27357-ship2pay-module-contribution-shows-payment-methods-depends-on-shipping/page__st__160 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now