Merge pull request #29938 from geektzu/fix/29708
Fix for deleted Reduce or Zero rate tax classes
This commit is contained in:
commit
84f8fcd016
|
@ -619,9 +619,11 @@ class WC_Install {
|
|||
add_option( 'woocommerce_checkout_highlight_required_fields', 'yes', '', 'yes' );
|
||||
add_option( 'woocommerce_demo_store', 'no', '', 'no' );
|
||||
|
||||
// Define initial tax classes.
|
||||
WC_Tax::create_tax_class( __( 'Reduced rate', 'woocommerce' ) );
|
||||
WC_Tax::create_tax_class( __( 'Zero rate', 'woocommerce' ) );
|
||||
if ( self::is_new_install() ) {
|
||||
// Define initial tax classes.
|
||||
WC_Tax::create_tax_class( __( 'Reduced rate', 'woocommerce' ) );
|
||||
WC_Tax::create_tax_class( __( 'Zero rate', 'woocommerce' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue