How do I set the product limit for the customer to zero?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How do I set the product limit for the customer to zero?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100339
    online24
    Participant

    Hi dear support.

    I’m using this line in formula ( pro version ) :

    [alg_wc_mppu_max_qty max_qty=”0″ user_id=”5″ product_id=”448″]

    max_qty=”0″ It is considered unlimited !

    And it is not considered zero.

    The customer can order the product indefinitely.

    How do I set the product quota for the customer to zero?

    #100340
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    You are correct, max_qty="0" means that there are no restrictions for max quantity for that user. To set it to zero, you need to set max quantity to -1, i.e.:

    [alg_wc_mppu_max_qty max_qty="-1" user_id="5" product_id="448"]
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.