Quantity input change to form field
-
I change the product quantity field can type word, but update quality button is invalid. How can I solve the problem?
product-quantity
<td class="product-quantity" data-title="Quantity"> <?php $product_quantity = woocommerce_form_field( array( 'input_name' => "raq[{$key}][qty]", 'input_value' => apply_filters( 'ywraq_quantity_input_value', $raq['quantity'] ), 'max_value' => apply_filters( 'ywraq_quantity_max_value', $_product->backorders_allowed() ? '' : $_product->get_stock_quantity(), $_product ), 'min_value' => apply_filters( 'ywraq_quantity_min_value', 0, $_product ), 'step' => apply_filters( 'ywraq_quantity_step_value', 1, $_product ), ), $_product, false ); echo $product_quantity; //phpcs:ignore ?>
update quality button
<td colspan="<?php echo esc_attr( $colspan ); ?>" class="actions"> <input type="submit" class="button" name="update_raq" value="<?php echo esc_attr( get_option( 'ywraq_update_list_label', __( 'Update List', 'yith-woocommerce-request-a-quote' ) ) ); ?>"> <input type="hidden" id="update_raq_wpnonce" name="update_raq_wpnonce" value="<?php echo esc_attr( wp_create_nonce( 'update-request-quote-quantity' ) ); ?>"> </td>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Quantity input change to form field’ is closed to new replies.