diff --git a/inc/class-wooviet-admin-page.php b/inc/class-wooviet-admin-page.php index c8bd503..b022f64 100644 --- a/inc/class-wooviet-admin-page.php +++ b/inc/class-wooviet-admin-page.php @@ -101,7 +101,16 @@ class WooViet_Admin_Page {
diff --git a/woo-viet.php b/woo-viet.php index f2bede6..319fe8d 100644 --- a/woo-viet.php +++ b/woo-viet.php @@ -138,7 +138,9 @@ class WooViet { $settings = self::get_settings(); // Check if "Add the OnePay Domestic Gateway" is enabled - if ( 'yes' == $settings['add_onepay_domestic']['enabled'] ) { + if ( 'yes' == $settings['add_onepay_domestic']['enabled'] + AND 'VND' == get_woocommerce_currency() + ) { include( 'inc/class-wooviet-onepay-domestic.php' ); add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway_class' ) );