• Resolved thirstyquaker

    (@thirstyquaker)


    When I set a minimum and step quantity of 0.01, I am not able to change the quantity with +/- buttons. I am able to manually type the quantity, but then it rounds to 0.1 amounts.

    If I set the minimum/step to 0.1 I do not have this problem and everything works fine.

    If I set the step to 0.25, I get the following pop-up error “1.3 – No valid value. Auto correction nearest valid value: 1.5”

    So it seems the maximum precision is 0.1 and not 0.01, and it is trying to round to 0.1 values. Is there a setting I am missing?

    Global settings:
    min quantity 1
    max quantity blank
    Step quantity 1
    default set quantity 1

    Category settings:
    min quantity .01
    max quantity blank
    Step quantity .01
    default set quantity 1

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author wpgear

    (@wpgear)

    Hello Thirstyquaker!

    Theme “Astra”.

    Try to install any standard WP theme.
    With the same settings of quantity.
    Let’s see what happens?

    Thread Starter thirstyquaker

    (@thirstyquaker)

    Sorry for the delay, yes you’re right that it’s working fine with the Storefront theme. I will contact the theme creators about this issue.

    Plugin Author wpgear

    (@wpgear)

    Thanks for the answer.
    I expected this.
    This is not the first problem with “Astra”. But yes – “Astra” it is spectacular, I agree.

    I will be very interested in what “Astra” support service will answer.
    If necessary, I am ready to make small changes in the script to ensure compatibility.

    Thread Starter thirstyquaker

    (@thirstyquaker)

    Yeah they basically just said it’s incompatible and try a different plugin. I’ve already tried a couple, but I liked yours as it’s quite simple, so if you do make it compatible would be great. Thank you for your time.

    Thread Starter thirstyquaker

    (@thirstyquaker)

    I’ve tried a few other plugins and am having the same issue. If you think it’s possible to make your plugin compatible, please let me know, I am willing to pay a commission to get this working. Thanks.

    Plugin Author wpgear

    (@wpgear)

    no need money

    Plugin Author wpgear

    (@wpgear)

    Hello Thirstyquaker!

    I installed the official Astra Theme and tried to understand about this problem.
    That’s what I think:

    1. Yes. I can make the [+/-] buttons in the Theme “Astra” work.
      But for this, it is necessary to make changes to JS Theme files, but these changes will be lost after updating the Theme “Astra”.
      Therefore, I will not do it.
    2. The developers of the Astra Theme can (if they want) themselves make changes to Add-to-Cart-Quantity-btn.min.js
    3. Here is a standing decision what you can do yourself:
      In the settings of the Theme “Astra”: Console -> Apperance -> Customize -> Woocommerce -> Misc -> “Enable Quantity Plus and Minus” = set disable.
      Save Settings.
      The [+/-] buttons will disappear, but instead there will be standard controls [+/-] and the ability to change the amount with the help of the mouse wheel.

    I checked, after that everything works as it should with such values as 0.01

    And if you really need it, then you can try to find Plugins for buttons [+/-]. It is possible that they will work fine and correctly.

    Hi guys, I am also finding this is an issue with my website.

    product page +/- will increase and decrease by 1, even though I have my increments set at increasing by .25 for quantity using this decimal plugin.

    The theme I am using is Modus from Arrow Theme @ theme forest.

    Any ideas how I would tackle this one?

    Plugin Author wpgear

    (@wpgear)

    Theme “Modus”. This Theme is not in the WP repository. I can’t install it to see what the problem is.
    Show the link to the page of your product where it does not work.

    Thread Starter thirstyquaker

    (@thirstyquaker)

    Hi, I’m sorry I thought I had responded earlier, but yes this option with the Astra theme worked, which is great!

    Console -> Apperance -> Customize -> Woocommerce -> Misc -> “Enable Quantity Plus and Minus” = set disable.
    Save Settings.

    Thanks for getting back to me WPGear support, the temp URL is: https://tinyurl.com/3ykv4vtt .

    I look forward to hearing from you.

    Plugin Author wpgear

    (@wpgear)

    Hi DigiCloud!

    I looked at this product.
    That’s what I think:

    1. If you put the mouse in the field and twist the mouse wheel, then the quantity changes. It changes as it should be.
      This means that the plugin works correctly.
    2. The buttons [+/-] created the Theme “Modus”.
      And it does it wrong. Button [-] can even make a negative quantity )))

    Therefore, you should ask this question about the [+/-] buttons to Theme “Modus” Support.
    Or try to disable these buttons so that there are standard controls.
    Or search for another Themes in which the [+/-] buttons work correctly.

    Hi there, thanks so much for getting back to me. I am really stuck and I am hoping you can help with this asap. I hope you didnt mind, but I sent a comment via https://wpgear.xyz/en/about/ , I really hope you can help me out on this issue. Thanks so much for your excellent contribution to the WP community. We love your plugin!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘+/- buttons not working with 0.01 decimal quantities’ is closed to new replies.