Title: Incorrect value when changing shipping method
Last modified: April 23, 2019

---

# Incorrect value when changing shipping method

 *  Resolved [Antony](https://wordpress.org/support/users/antonyportfolio/)
 * (@antonyportfolio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/incorrect-value-when-changing-shipping-method/)
 * Hi, I’ve been using the plugin on a few websites and it is very useful to make
   the quantity area more user-friendly.
 * A client has noticed an issue on the cart page when changing the shipping method
   to be used. Following the shipping method being updated, the quantity increases
   or decreases by more than 1 when clicking the plus/minus buttons.
 * How to replicate:
 * 1. Have more than one shipping method available.
    2. Add product to cart. 3. 
   On the cart page, change the currently selected shipping method to a different
   one. 4. Click plus or minus button and quantity will increase or decrease by 
   more than 1. 5. The number that the buttons increase or decrease the quantity
   also increases each time the shipping method is changed.
 * Hopefully this can be sorted as I’m very happy using the plugin.
 * I’ve also got a request which will assist with styling the buttons – can the 
   three separate input lines in ‘quantity-input.php’ (lines 33, 34, 35) be all 
   placed on the same line in the code rather than separate ones, as white space
   is added by browsers due to the line breaks in the code? Alternatively, if ‘quantity-
   input.php’ already exists in the theme directory ‘woocommerce’ folder then could
   that file be used instead of the plugin version?
 * Thank you,
    Antony

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

 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/incorrect-value-when-changing-shipping-method/#post-11524598)
 * Howdy [@antonyportfolio](https://wordpress.org/support/users/antonyportfolio/),
 * > A client has noticed an issue on the cart page when changing the shipping method
   > to be used. Following the shipping method being updated, the quantity increases
   > or decreases by more than 1 when clicking the plus/minus buttons.
 * Thanks for your feedback and sorry for my late reply. I’ll try to reproduce and
   fix this issue.
 * > I’ve also got a request which will assist with styling the buttons – can the
   > three separate input lines in ‘quantity-input.php’ (lines 33, 34, 35) be all
   > placed on the same line in the code rather than separate ones, as white space
   > is added by browsers due to the line breaks in the code? Alternatively, if ‘
   > quantity-input.php’ already exists in the theme directory ‘woocommerce’ folder
   > then could that file be used instead of the plugin version?
 * While I can remove the line breaks, which I will do, as the plugin has the file
   _quantity-input.php_ it will overwrite the one within the _WooCommerce_ folder.
   This is default behaviour and cannot be adjusted. The plugin file is also necessary
   to change the underlying HTML form to add the +/- buttons.
 *  Plugin Author [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/incorrect-value-when-changing-shipping-method/#post-11860674)
 * Hello [@antonyportfolio](https://wordpress.org/support/users/antonyportfolio/),
   I haven’t heard from you in a while, thus, I’m going to mark this issue as solved
   for now.

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

The topic ‘Incorrect value when changing shipping method’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/incorrect-value-when-changing-shipping-method/#post-11860674)
 * Status: resolved