pipo1000 Posted November 20, 2012 Share Posted November 20, 2012 Hello, Within my 1.5.2 shop I need to restrict one payment module (Paypal) on country so it is not allowed in the Netherlands (so a check box at every country except Netherlands). However when I do this Paypal does not show up at the other countries (for example Germany). When I check the box at Netherlands, Paypal shows up at Germany and Netherlands. The payment module choose engine seems only to look at Localization->Configuration->Default country for the country restriction and not at the country of the customers address. I can confirm this because I have changed the Default Country and the country restriction seem to follow my change. Does any body know how to fix this, even with a hack in the php code? Kind regards, Edwin Link to comment Share on other sites More sharing options...
pipo1000 Posted November 23, 2012 Author Share Posted November 23, 2012 Can any body point me to a solution or the PHP file which processes the country restriction on the payment gateways? I tried to find the code myself but I seem unable to locate the right php file. Thanks, Edwin Link to comment Share on other sites More sharing options...
pipo1000 Posted November 24, 2012 Author Share Posted November 24, 2012 (edited) I just fresly installed a test shop and tested the restrictions again. It looks like the 'default country' is always filtering the payment gateways first with the country restrictions and then the country of the address of the customer. So; Default country NL 1) NL paypal: N ideal: Y GB paypal: Y ideal: N NL customer sees only ideal. GB customer sees NO payment option. 2) NL paypal: Y ideal: Y GB paypal: Y ideal: N NL customer sees ideal and payapl. GB customer sees only paypal. 3) NL paypal: N ideal: N GB paypal: Y ideal: Y NL customer sees no payment options. GB customer sees no payment options. So it looks like the payment gateway list is restricted twice; first with the default country restriction rules and then with the restriction rules of country of the address! It seriously looks like a bug! Edited November 24, 2012 by pipo1000 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts