Title: Input value incorrect
Last modified: March 30, 2020

---

# Input value incorrect

 *  Resolved [idnr1](https://wordpress.org/support/users/rm04/)
 * (@rm04)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/input-value-incorrect/)
 * Hi,
 * If min value is 0 like with grouped products no value is shown at all and buttons
   don’t work untill u manually insert a value.
 * I solved it by changing inside quantity-input.php;
 * `value="<?php echo esc_attr( $input_value ); ?>"`
 * to
 * `value="<?php echo esc_attr( $min_value ); ?>"`
 * After this change simple and grouped products both work as expected.
 * Using latest woocommerce and plugin..
 * Please change it in future update

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12604475)
 * Hello [@rm04](https://wordpress.org/support/users/rm04/) 👋 Thanks for letting
   me know. I’ll investigate this issue later today and will released a fixed version.
 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12605434)
 * Hello [@rm04](https://wordpress.org/support/users/rm04/) 👋 I just release version
   1.14 of the update which includes your suggested change. 😀
 *  Thread Starter [idnr1](https://wordpress.org/support/users/rm04/)
 * (@rm04)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12607833)
 * Thank u very much 🙂
    tested and confirmed working.
 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12615320)
 * Hello [@rm04](https://wordpress.org/support/users/rm04/) 👋 It seems that the
   recent update had a negative impact for non-grouped products. I’ll address this
   issue later today and will create a new release. 😁
 *  Thread Starter [idnr1](https://wordpress.org/support/users/rm04/)
 * (@rm04)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12621642)
 * i reopened this issue since version 1.15 rerolled my fix, i suggested a new kind
   of fix on your github page. [https://github.com/nielslange/smntcs-woocommerce-quantity-buttons/issues/21](https://github.com/nielslange/smntcs-woocommerce-quantity-buttons/issues/21)
 * My former fix didnt had negative impact on simple or grouped products so probably
   only on variable products.
 * So if u use my latest suggestion to make it something like this;
    `if( $product-
   >is_type( 'simple' ) && $input_value == '' )` then input value should always 
   be 0. That should prevent any effect on other kind of products
 * Kind regards
 *  [aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
 * (@aaronbennett2097)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12623684)
 * Hi.
 * This is also affecting woocommerce mix and match products.
 * Thank you for the upcoming fix.
 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12626044)
 * Hello [@rm04](https://wordpress.org/support/users/rm04/) & [@aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
   👋 I just added a fallback mechanism to detect an empty value and then show 0
   instead of keeping the quantity field empty. Can you confirm that release 1.16
   fixes the issue and that both simple and grouped products work as expected again
   on your end?
 *  [aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
 * (@aaronbennett2097)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12626129)
 * Hi Niels.
 * That fixed it for me on WooCommerce Mix and Match.
 * Thank you 🙂
 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12629445)
 * Hello Aaron, I’m glad to hear that the issue is finally fixed! 😁

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Input value incorrect’ is closed to new replies.

 * ![](https://ps.w.org/smntcs-woocommerce-quantity-buttons/assets/icon-256x256.
   jpg?rev=2428560)
 * [SMNTCS Quantity Increment Buttons for WooCommerce](https://wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/)
 * [Support Threads](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/input-value-incorrect/#post-12629445)
 * Status: resolved