@@ 136-138 (lines=3) @@ | ||
133 | <label><?php _e( 'Allow backorders?', 'woocommerce' ); ?></label> |
|
134 | <select name="variable_backorders[<?php echo $loop; ?>]"> |
|
135 | <?php |
|
136 | foreach ( $parent_data['backorder_options'] as $key => $value ) { |
|
137 | echo '<option value="' . esc_attr( $key ) . '" ' . selected( $key === $_backorders, true, false ) . '>' . esc_html( $value ) . '</option>'; |
|
138 | } |
|
139 | ?> |
|
140 | </select> |
|
141 | </p> |
|
@@ 163-165 (lines=3) @@ | ||
160 | <label><?php _e( 'Stock status', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Controls whether or not the product is listed as "in stock" or "out of stock" on the frontend.', 'woocommerce' ) ); ?></label> |
|
161 | <select name="variable_stock_status[<?php echo $loop; ?>]"> |
|
162 | <?php |
|
163 | foreach ( $parent_data['stock_status_options'] as $key => $value ) { |
|
164 | echo '<option value="' . esc_attr( $key === $_stock_status ? '' : $key ) . '" ' . selected( $key === $_stock_status, true, false ) . '>' . esc_html( $value ) . '</option>'; |
|
165 | } |
|
166 | ?> |
|
167 | </select> |
|
168 | </p> |
|
@@ 227-228 (lines=2) @@ | ||
224 | <select name="variable_tax_class[<?php echo $loop; ?>]"> |
|
225 | <option value="parent" <?php selected( is_null( $_tax_class ), true ); ?>><?php _e( 'Same as parent', 'woocommerce' ); ?></option> |
|
226 | <?php |
|
227 | foreach ( $parent_data['tax_class_options'] as $key => $value ) |
|
228 | echo '<option value="' . esc_attr( $key ) . '" ' . selected( $key === $_tax_class, true, false ) . '>' . esc_html( $value ) . '</option>'; |
|
229 | ?></select> |
|
230 | </p> |
|
231 |
@@ 197-199 (lines=3) @@ | ||
194 | ||
195 | echo '<p class="form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '"><label for="' . esc_attr( $field['id'] ) . '">' . wp_kses_post( $field['label'] ) . '</label><select id="' . esc_attr( $field['id'] ) . '" name="' . esc_attr( $field['name'] ) . '" class="' . esc_attr( $field['class'] ) . '" style="' . esc_attr( $field['style'] ) . '" ' . implode( ' ', $custom_attributes ) . '>'; |
|
196 | ||
197 | foreach ( $field['options'] as $key => $value ) { |
|
198 | echo '<option value="' . esc_attr( $key ) . '" ' . selected( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>'; |
|
199 | } |
|
200 | ||
201 | echo '</select> '; |
|
202 |