otao
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WooCommerce] Payment fee tax class based on product tax class@vyskoczilova
https://github.com/vyskoczilova/woocommerce-payforpayment/pull/61
I just start being a git user, like this?Forum: Plugins
In reply to: [WooCommerce] Payment fee tax class based on product tax classI have series of tax_class depende by customer role & im using woocommerce pay for payment,
recently I find this way to dynamic customer’s tax_classadd_filter('woocommerce_product_get_tax_class', 'ot_get_customer_tax_class'); // product tax class add_filter('option_woocommerce_shipping_tax_class', 'ot_get_customer_tax_class'); // shipping tax class add_filter('option_woocommerce_cod_settings', function($settings, $option_name){ if(isset($settings['pay4pay_tax_class']) && 'inherit' === $settings['pay4pay_tax_class']){ $settings['pay4pay_tax_class'] = ot_get_customer_tax_class($settings['pay4pay_tax_class']); } return $settings; }, 10, 2); // #210521 payment fee tax classhoping author of plugin could add a filter hook when get settings
// woocommerce-pay-for-payment\inc\class-pay4pay.php:286 get_current_gateway_settings() return apply_filters('woocommerce_pay4pay_xxx_settings', $settings, $current_gateway);So could you make a check if the default separator is “,” for Europe user, then make a convert to let it work, please!
Viewing 3 replies - 1 through 3 (of 3 total)