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,10 +619,12 @@ class WC_Install {
|
||||||
add_option( 'woocommerce_checkout_highlight_required_fields', 'yes', '', 'yes' );
|
add_option( 'woocommerce_checkout_highlight_required_fields', 'yes', '', 'yes' );
|
||||||
add_option( 'woocommerce_demo_store', 'no', '', 'no' );
|
add_option( 'woocommerce_demo_store', 'no', '', 'no' );
|
||||||
|
|
||||||
|
if ( self::is_new_install() ) {
|
||||||
// Define initial tax classes.
|
// Define initial tax classes.
|
||||||
WC_Tax::create_tax_class( __( 'Reduced rate', 'woocommerce' ) );
|
WC_Tax::create_tax_class( __( 'Reduced rate', 'woocommerce' ) );
|
||||||
WC_Tax::create_tax_class( __( 'Zero rate', 'woocommerce' ) );
|
WC_Tax::create_tax_class( __( 'Zero rate', 'woocommerce' ) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.
|
* Add the default terms for WC taxonomies - product types and order statuses. Modify this at your own risk.
|
||||||
|
|
Loading…
Reference in New Issue