How can I limit a product’s purchase to only certain users?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I limit a product’s purchase to only certain users?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #100841
    blankignatius fung
    Participant

    Hi, I am using formular, i wanna the product 333 sell to user 1, 2, 3, 4 only, however, it seems that user 5, 6, 7, 8 can buy the product 333 as well, may i know if there is any additional setting? thank you.

    [alg_wc_mppu limit="1" user_id="1, 2, 3, 4" product_id="333"]
    [alg_wc_mppu limit="1" user_id="5, 6, 7, 8" product_id="444"]
    
    #100842
    blankZohaib
    Participant

    Hi,

    To restrict users from purchasing a product for example, 333 to 5,6,7,8 use the following formula

    [alg_wc_mppu limit="-1" user_id="5,6,7,8" product_id="333"]

    This formula will not allow users 5,6,7 and 8 to buy the 333 product. The key is to use -1 as the limit if you don’t want them to buy that product.

    #100843
    blankignatius fung
    Participant

    it works!!! Thx for your quick reply, cool~~~~~~~~

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.