storeapps supports this item


15 comments found.

Hi, Will this plugin support PayPal and Payumoney gateways for Woocommerce? Since PayPal is restricted in India, I just want to check before buying.

@Nandak Yes, the plugin supports all gateways that are compatible with WooCommerce. We ourselves use it with PayPal!

Hello, presale question, does this restrict a product checkout.. I mean products when checking out that are not available in there countries


Thanks for asking. Gateways by Location only restricts available payment gateways by billing/shipping location. It does not restricts products by locations.

Will this support Instamojo and paypal.

@Abhi: All WooCommerce payment gateways are supported. The plugin can limit the gateways that are shown to customers based on their shipping / billing country.

So yes, PayPal and Instamojo should work fine.


I receive the following error. Could you please help me?

Warning: is_readable(): open_basedir restriction in effect. File(/var/www/vhosts/ is not within the allowed path(s): (/var/www/vhosts/ in /var/www/vhosts/ on line 476

Thanks for reporting this.. Will check in plugin code and revert.

Please, do something asap because the website is live and is for my client… thanks in advance

@ditsis: Download the code at and save it as ‘class-gateways-by-location.php’. Then copy that file over to ‘wp-content/plugins/woocommerce-gateways-by-location/classes/’ folder on your server. And check if that solves the problem.

Let us know the result. Once you confirm, we will make a new release for everyone.

If you face any difficulties, contact us via


Hi sir, Please, How can i limit the sell to one country only?

AND How can i prevent anyone outside this country buy any item from my shop ?

And my shop have: cheque payment method as PDF file. Best regards A.J

1. Go to Woocommerce – Settings – Checkout page. 2. Disable all payment gateways – except “cheque” payment method. 3. Select “Billing/Shipping”, “Gateways” and “Country” to allow from Gateway By Location section. 4. Save Changes

That should serve the case you mentioned.

Thanks a lot sir. FIXED.

Can this work for external links? To serve country specific affiliate links? and prices?

No. This is only for payment gateways. Not for links.

I want to limit payment gateways to a specific state in the USA (requiring a different gateway for all others) is this possible with your plugin?

Sorry, it is not possible to limit payment gateways by state. The plugin limits them by billing or shipping country only.

Hi, I have two bank accounts one in German bank and second in Czech bank, both accounts are saved in woo BACS. I want to: for customers from Germany appears only bank account in Germany, for customers from Czech Republic appears only bank account in Czech Republic. Is it possible with your plugin?

The country list is set up per gateway. So setting two rules with one payment gateway is not possible. But if you have two BACS payment gateways, you can restrict which one shows based on the country.

I am not aware of any BACS gateway plugin – if there is one, you can configure German account with default WooCommerce BACS gateway, and Czech account with BACS gateway from another plugin.

Otherwise, you can use the Gateways by Location plugin to list BACS payment gateway only if the country was either Germany or Czech Republic. And then within the account details, inform customers of the two accounts, and request them to deposit to appropriate account based on their country.

Just submitted a support request. Please address ASAP as this is affecting our live site.

Receiving error after updating to latest version: Fatal error: Call to undefined function get_plugin_data() in /home/latch/public_html/wp-content/plugins/woocommerce-gateways-by-location/classes/class-gateways-by-location.php on line 27

Thanks for bringing this up. We’ve submitted a new release with fix for this problem. Should be approved soon.

Can we have restriction of payment gateway to certain cities in State in Country? or restriction on certain product category.

Only make available Cash on Delivery to that state or PIN CODE.

Sorry, this plugin limits gateways only by country.

Hello, nice plugin. Have you worked out bugs and any security issues with it? When is the next update?

The plugin is working very well and we don’t have any open bugs / security issues. The next release doesn’t have a fixed date yet. If upcoming major WooCommerce release requires some compatibility updates, that will be the possible next release for this plugin.

Presale question. Does this plugin work with the new Woocommerce v2.6 shipping zones?

Yes, it will work with Woocommerce v2.6 shipping zones.

This plugin limits gateways only by billing country so it won’t be affected by shipping related changes.

1) How is reduce fee, saw your feature, but no see you talk on video? Can you explain more? 2) If Direct Bank Transfer i set A & B account. I want to apply for USA is Direct Bank Transfer of A, another counry is Direct Bank Transfer B. How can i do this in your plugin?

Hi Can this be set to state, instead of country?

In current version (1.2.7) it is not possible. But it is in our to-do list. We’ll add this feature in future.

Hi there, I’m getting this fatal error:

Fatal error: Can’t use method return value in write context in /home/site/public_html/wp-content/plugins/woocommerce-gateways-by-location/includes/class-gateways-by-location.php on line 274

Download zip file.

After extracting you’ll get file named ‘class-gateways-by-location.php’. Copy & paste this file in ‘wp-content/plugins/woocommerce-gateways-by-location/includes/’ (replace if asked). This should resolve the issue.