Move tax enabled check
This commit is contained in:
parent
b2711f3d64
commit
0a3defd798
File diff suppressed because one or more lines are too long
|
@ -175,8 +175,9 @@ extract( $variation_data );
|
||||||
|
|
||||||
echo wp_dropdown_categories( $args );
|
echo wp_dropdown_categories( $args );
|
||||||
?></p>
|
?></p>
|
||||||
<p class="form-row form-row-full">
|
|
||||||
<?php if ( wc_tax_enabled() ) : ?>
|
<?php if ( wc_tax_enabled() ) : ?>
|
||||||
|
<p class="form-row form-row-full">
|
||||||
<label><?php _e( 'Tax class:', 'woocommerce' ); ?></label>
|
<label><?php _e( 'Tax class:', 'woocommerce' ); ?></label>
|
||||||
<select name="variable_tax_class[<?php echo $loop; ?>]">
|
<select name="variable_tax_class[<?php echo $loop; ?>]">
|
||||||
<option value="parent" <?php selected( is_null( $_tax_class ), true ); ?>><?php _e( 'Same as parent', 'woocommerce' ); ?></option>
|
<option value="parent" <?php selected( is_null( $_tax_class ), true ); ?>><?php _e( 'Same as parent', 'woocommerce' ); ?></option>
|
||||||
|
@ -184,8 +185,8 @@ extract( $variation_data );
|
||||||
foreach ( $parent_data['tax_class_options'] as $key => $value )
|
foreach ( $parent_data['tax_class_options'] as $key => $value )
|
||||||
echo '<option value="' . esc_attr( $key ) . '" ' . selected( $key === $_tax_class, true, false ) . '>' . esc_html( $value ) . '</option>';
|
echo '<option value="' . esc_attr( $key ) . '" ' . selected( $key === $_tax_class, true, false ) . '>' . esc_html( $value ) . '</option>';
|
||||||
?></select>
|
?></select>
|
||||||
<?php endif; ?>
|
|
||||||
</p>
|
</p>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<p class="form-row form-row-full">
|
<p class="form-row form-row-full">
|
||||||
<label><?php _e( 'Variation Description:', 'woocommerce' ); ?></label>
|
<label><?php _e( 'Variation Description:', 'woocommerce' ); ?></label>
|
||||||
|
|
Loading…
Reference in New Issue