• Resolved taisho

    (@taisho)


    Hello!

    An example: I have a product with 1 max quantity. 1 quantity is already in cart and I try to add 1 more.

    Normally I receive error “You cannot add that amount to the cart — we have 1 in stock and you already have 1 in your cart.” But with this plugin, instead I get infinite spinning wheel above Add to cart button, server request error 500, connected to line 97 in this plugin and I must manually refresh page for spinning wheel to disappear and for this error message to be displayed.

    Cheers

    • This topic was modified 5 years, 10 months ago by taisho.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Putting a comment in front of Line 149 should fix it for now:
    //$this->json_headers();

    Cheers,
    Alex

    Thread Starter taisho

    (@taisho)

    Thanks. Unfortunately, I checked it and while on my test variable product with the first variation of 1 max quantity it doesn’t generate any error when adding to cart the second time, it sets stock of the other remaining variations to 1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug when adding to cart makes quantity go over max’ is closed to new replies.