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,17 +175,18 @@ extract( $variation_data );
|
|||
|
||||
echo wp_dropdown_categories( $args );
|
||||
?></p>
|
||||
<p class="form-row form-row-full">
|
||||
<?php if ( wc_tax_enabled() ) : ?>
|
||||
<label><?php _e( 'Tax class:', 'woocommerce' ); ?></label>
|
||||
<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>
|
||||
<?php
|
||||
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>';
|
||||
?></select>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
|
||||
<?php if ( wc_tax_enabled() ) : ?>
|
||||
<p class="form-row form-row-full">
|
||||
<label><?php _e( 'Tax class:', 'woocommerce' ); ?></label>
|
||||
<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>
|
||||
<?php
|
||||
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>';
|
||||
?></select>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="form-row form-row-full">
|
||||
<label><?php _e( 'Variation Description:', 'woocommerce' ); ?></label>
|
||||
|
|
Loading…
Reference in New Issue