Totti Posted November 12, 2013 Share Posted November 12, 2013 Hello,how do I limit payments depending on the country and / or to the courier ? Link to comment Share on other sites More sharing options...
El Patron Posted November 12, 2013 Share Posted November 12, 2013 back office-->modules-->payment scroll down and your can restrict by country I do not know of any restrict by 'carrier' native options 1 Link to comment Share on other sites More sharing options...
Totti Posted November 19, 2013 Author Share Posted November 19, 2013 I needed to courier.Thank you. Link to comment Share on other sites More sharing options...
NemoPS Posted November 20, 2013 Share Posted November 20, 2013 It's not possible by default. However, you can achieve something bu editing each payment module's hookPayment function. Check which carrier is selected using $this->context->cart->id_carrier and disable accordingly Link to comment Share on other sites More sharing options...
Totti Posted November 27, 2013 Author Share Posted November 27, 2013 It's not possible by default. However, you can achieve something bu editing each payment module's hookPayment function. Check which carrier is selected using $this->context->cart->id_carrier and disable accordingly Thanks for the reply, can you explain better how to do ? Link to comment Share on other sites More sharing options...
samuel89 Posted December 27, 2013 Share Posted December 27, 2013 Yeah..would like a better explanation. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted December 27, 2013 Share Posted December 27, 2013 In the hookPayment function, as I said you can check which carrier id you want to disable. Say, our carrier has id 4 I can't check now, but if you do something like if($this->context->cart->id_carrier == 4) return; The module should be hidden from sight 1 Link to comment Share on other sites More sharing options...
Recommended Posts