• Resolved Antony

    (@antonyportfolio)


    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

    (@nielslange)

    Howdy @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

    (@nielslange)

    Hello @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.