WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Max Quantity
[resolved] Cart error when changing quantity (6 posts)

  1. modbunker
    Member
    Posted 4 months ago #

    Hi, this plugin has worked great but now gives me an error on the cart page.

    When trying to change the quantity of an item in the cart, this error comes up "You can add a maximum of 15 (Name of product here) to your cart. You already have 13". You can see that it does not make sense as I havnt hit the limit that I set for the product yet, and even if I change the quantity to anything else it gives the same error. Any help or a fix would be great. Thank you

    https://wordpress.org/plugins/woocommerce-max-quantity/

  2. isabel104
    Member
    Plugin Author

    Posted 4 months ago #

    If you set the maximum limit to 15, then if you already have 13 in the cart, that error notice will appear if you try to add any more than 2.

    In other words, it will allow you to add 2 more (13 + 2 = 15). If you try to add more than 2, the error will appear:

    You can add a maximum of 15 (Name of product here) to your cart. You already have 13.

    That's the default behavior of the plugin. However, if that error happens when you try to add only 1 or 2 more items, then that would be a problem.

  3. modbunker
    Member
    Posted 4 months ago #

    Hi Isabel,Thank you for the reply

    Yes before I had it set to 10 and it gave no errors, but now even when each product is not at 15 it still gives me the error. Ex. Setting a product to 9 is ok, but when I select 10 or more it triggers the error even when the max is set at 15.

  4. isabel104
    Member
    Plugin Author

    Posted 4 months ago #

    I'm sorry, I cannot reproduce this error. A link your store would help me to pinpoint the problem.

  5. isabel104
    Member
    Plugin Author

    Posted 3 months ago #

    Marked as "resolved" due to inactivity.

  6. isabel104
    Member
    Plugin Author

    Posted 2 weeks ago #

    WooCommerce Max Quantity 1.2.1 was just released and it fixes a bug in which it did not calculate the quantity properly if you UPDATE Quantity on the Cart page. This did not let some users DECREASE or INCREASE the quantity while on the cart page.

    Now, it will work correctly when you UPDATE the quantity on the Cart page.

    Hope this helps.

Reply

You must log in to post.

About this Plugin

About this Topic