Merge pull request #8961 from woothemes/simplify-ireland-support

Adds support for Simplify Commerce in Ireland.
This commit is contained in:
Mike Jolley 2015-08-26 13:30:48 +01:00
commit 9554fa1614
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ class WC_Payment_Gateways {
'WC_Gateway_Paypal',
);
if ( 'US' === WC()->countries->get_base_country() ) {
$simplify_countries = array( 'US', 'IE' ); // USA and Ireland
if ( in_array( WC()->countries->get_base_country(), $simplify_countries ) ) {
if ( class_exists( 'WC_Subscriptions_Order' ) || class_exists( 'WC_Pre_Orders_Order' ) ) {
if ( ! function_exists( 'wcs_create_renewal_order' ) ) { // Subscriptions < 2.0
$load_gateways[] = 'WC_Addons_Gateway_Simplify_Commerce_Deprecated';