get_field_key( $key ); $options_based_on = apply_filters( 'flexible_shipping_method_rule_options_based_on', array( 'none' => __( 'None', 'flexible-shipping' ), 'value' => __( 'Price', 'flexible-shipping' ), 'weight' => __( 'Weight', 'flexible-shipping' ), )); $key = 'method_rules[xxx][based_on]'; $args = array( 'type' => 'select', 'options' => $options_based_on, 'return' => true, ); $value = 'none'; $field_based_on = woocommerce_form_field( $key, $args, $value ); $key = 'method_rules[xxx][min]'; $args = array( 'type' => 'text', 'return' => true, 'input_class' => array( 'wc_input_price' ), ); $value = ''; $field_min = woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); $key = 'method_rules[xxx][max]'; $args = array( 'type' => 'text', 'return' => true, 'input_class' => array( 'wc_input_price' ), ); $value = ''; $field_max = woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); $key = 'method_rules[xxx][cost_per_order]'; $args = array( 'type' => 'text', 'return' => true, 'input_class' => array( 'wc_input_price' ), ); $value = ''; $field_cost_per_order = woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); $count_rules = 0; ?>

', '' ); ?>

$rule ) : $count_rules++; ?>
  order', 'flexible-shipping' ); ?>
'select', 'options' => $options_based_on, ); $value = ''; if ( isset( $rule['based_on'] ) ) { $value = $rule['based_on']; } woocommerce_form_field( $key, $args, $value ); ?> 'text', 'input_class' => array( 'wc_input_price' ), ); $value = ''; if ( isset( $rule['min'] ) ) { $value = $rule['min']; } woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); ?> 'text', 'input_class' => array( 'wc_input_price' ), ); $value = ''; if ( isset( $rule['max'] ) ) { $value = $rule['max']; } woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); ?> 'text', 'input_class' => array( 'wc_input_price' ), ); $value = ''; if ( isset( $rule['cost_per_order'] ) ) { $value = $rule['cost_per_order']; } woocommerce_form_field( $key, $args, wc_format_localized_price( $value ) ); ?>
version, '2.6.0', ">=" ) ) { ?>