diff --git a/includes/compatibility/fluidcheckout.php b/includes/compatibility/fluidcheckout.php index ee920da..cdeee4d 100644 --- a/includes/compatibility/fluidcheckout.php +++ b/includes/compatibility/fluidcheckout.php @@ -5,9 +5,9 @@ * * @see https://wordpress.org/support/topic/compatibility-with-kybernaut-ico-dic-plugin/#post-17330291 */ -// function woolab_icdic_fluidcheckout_add_optional_fields_skip_list( $skip_list ) { -// $skip_list[] = 'billing_ic'; -// $skip_list[] = 'billing_dic'; -// return $skip_list; -// } -// add_filter( 'fc_hide_optional_fields_skip_list', 'woolab_icdic_fluidcheckout_add_optional_fields_skip_list', 10 ); +function woolab_icdic_fluidcheckout_add_optional_fields_skip_list( $skip_list ) { + $skip_list[] = 'billing_ic'; + $skip_list[] = 'billing_dic'; + return $skip_list; +} +add_filter( 'fc_hide_optional_fields_skip_list', 'woolab_icdic_fluidcheckout_add_optional_fields_skip_list', 10 ); diff --git a/woolab-ic-dic.php b/woolab-ic-dic.php index a7d1d15..8e90581 100644 --- a/woolab-ic-dic.php +++ b/woolab-ic-dic.php @@ -81,7 +81,7 @@ function woolab_icdic_plugin_admin_notice() { include_once( WOOLAB_IC_DIC_ABSPATH . 'includes/settings.php'); // Compatibility include_once( WOOLAB_IC_DIC_ABSPATH . 'includes/compatibility/superfaktura.php'); - include_once( WOOLAB_IC_DIC_ABSPATH . 'includes/compatibility/fluidcheckout.php'); + // include_once( WOOLAB_IC_DIC_ABSPATH . 'includes/compatibility/fluidcheckout.php'); don't apply globally. add_filter( 'woocommerce_billing_fields' , 'woolab_icdic_billing_fields', 10, 2 ); add_filter( 'woocommerce_checkout_fields', 'woolab_icdic_checkout_fields', 10, 2);