mirror of
https://github.com/10h30/woo-viet.git
synced 2026-07-11 10:46:14 +09:00
Open OnePay for VND only
This commit is contained in:
+3
-1
@@ -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' ) );
|
||||
|
||||
Reference in New Issue
Block a user