WooCommerce: Disable Payment Gateway for a Specific Country

You might want to disable PayPal for non-local customers or enable a specific gateway for only one country… Either way, this is a very common requirement for all of those who trade internationally.

Here’s a simple snippet you can further customize to achieve your objective. Simply pick the payment gateway “slug” you want to disable/enable (“paypal”, “authorize”, “stripe”, etc.) and the country code (US, ES, IE, etc.) and then apply your conditional rules in the plugin below.

Continue reading WooCommerce: Disable Payment Gateway for a Specific Country

WooCommerce: How to Translate / Rename any String

There are times you don’t want to translate the whole installation of WordPress or one of its plugins (such as WooCommerce) just for renaming one short string. There are times you need to rename a label or a little thing and don’t feel like installing a bloated translation plugin. Thankfully, here’s a little PHP snippet that will work for you instantly. Continue reading WooCommerce: How to Translate / Rename any String