Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2669303
While the product quantity plugin is active I can't add items to the cart
Closed

Comments

  • Raphael Bridts started the conversation

    your Plugin suddenly stopped working. When I want to add items to the cart I receive this error message: "You can't add more than 0 "Asta" to the cart."

    I didn't change any settings and the plugin is up to date



  •  767
    Janilyn replied

    Hi Raphael, 

    Thanks for contacting us here. 

    We have detected where the issue was lying and will release a new update soon to address this. After installing the new update, kindly clear both your site and browsers caches and cookies to see the changes. 

    In fact, it was due to a change from the previous update that when users use either the Radio or Select type for the quantity input,they must put the lowest value in the min box and the highest value in the max box to make it work,or else products cannot be added to the cart. 

    When I checked our out test site and live demo, I've always put the Min/Max values,so I didn't encounter such issues.

    For example: If you use the range 0.5-2.0 for the Range of value then in the settings above that:

    - Min: must be filled with 0.5

    - Max: must be filled with 2.0

    I will report this to our developers to find a more convenient way to do this.They will try to release a new update as soon as possible to make it work more easily. 

    For now, it can be a quick workaround for your site if you don't want to revert back to the previous version is to fill out both the Min/Max boxes with the lowest and highest values for all your products so that it can be added to the cart. 

    Best regards. 

    Janilyn T. - WPClever Support Agent

  •  767
    Janilyn replied

    Our developers have just release a nee update to fix this, kindly update to version 1.5.2 and clear your caches to see the changes. 

    Best regards. 

    Janilyn T. - WPClever Support Agent

  • Manfred replied

    in Version 2.1.6 same issue occurs again

  • Andrew McEvoy replied

    I'm seeing:  

    > You can't add more than -1 "<product name here>" to the cart.

    This workaround seems to be working for me:

    <?php

    add_filter( 'woopq_product_max', function( $woopq_max ) {

      if ( $woopq_max !== -1 ) {
        return $woopq_max;
      }

      return 100000;
    } );

    ?>


  • Manfred replied

    Thanks Andrew.

    added this snippet to functions.php (in my child-theme)

    but it is still not working


  •  767
    Janilyn replied

    Hi Manfred,

    In that case, you can kindly create a new Private ticket and provide us with your admin credentials to check it again for you. 

    Also please check if your product has the Sold individually option enabled. This makes it impossible to add more than 1 unit of that item to the cart.

    Best regards.

    Janilyn T. - WPClever Support Agent