Merge branch 'pr/8901'
This commit is contained in:
commit
714cd8dc9a
|
@ -252,24 +252,35 @@ class WC_Meta_Box_Product_Data {
|
|||
echo '<div class="options_group show_if_simple show_if_external show_if_variable">';
|
||||
|
||||
// Tax
|
||||
woocommerce_wp_select( array( 'id' => '_tax_status', 'label' => __( 'Tax Status', 'woocommerce' ), 'options' => array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
) ) );
|
||||
woocommerce_wp_select( array(
|
||||
'id' => '_tax_status',
|
||||
'label' => __( 'Tax Status', 'woocommerce' ),
|
||||
'options' => array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
),
|
||||
'desc_tip' => 'true',
|
||||
'description' => __( 'Define whether or not the entire product is taxable, or just the cost of shipping it.', 'woocommerce' )
|
||||
) );
|
||||
|
||||
$tax_classes = WC_Tax::get_tax_classes();
|
||||
$classes_options = array();
|
||||
$classes_options[''] = __( 'Standard', 'woocommerce' );
|
||||
|
||||
if ( ! empty( $tax_classes ) ) {
|
||||
|
||||
foreach ( $tax_classes as $class ) {
|
||||
$classes_options[ sanitize_title( $class ) ] = esc_html( $class );
|
||||
}
|
||||
}
|
||||
|
||||
woocommerce_wp_select( array( 'id' => '_tax_class', 'label' => __( 'Tax Class', 'woocommerce' ), 'options' => $classes_options ) );
|
||||
woocommerce_wp_select( array(
|
||||
'id' => '_tax_class',
|
||||
'label' => __( 'Tax Class', 'woocommerce' ),
|
||||
'options' => $classes_options,
|
||||
'desc_tip' => 'true',
|
||||
'description' => __( 'Choose a tax class for this product. Tax classes are used to apply different tax rates specific to certain types of product.', 'woocommerce' )
|
||||
) );
|
||||
|
||||
do_action( 'woocommerce_product_options_tax' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue