How do I limit a specific user’s purchase to a specific quantity?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101024
    Christophe
    Guest

    Not very user friendly plugin. I’m trying to decipher how it would work.

    I’m trying to limit specific users to a specific quantity. What would be the settings?

    #101025
    Moshtafizur
    Participant

    Hello Christophe,

    I hope you are well today.

    Let’s say you want to limit userX and userY’s purchases of productA to 5 and 10 quantities in a lifetime, respectively. UserX and userY each have user ids of 40 and 50, whereas ProductA has a product id of 20. Then you would need to follow the general settings below:

    1. At first please navigate to  WooCommerce > Settings > Maximum Products per User > General  and set Mode to Product quantitiesDate range to Lifetime and the Order statuses to appropriate order status.

    2. Next, navigate to the the Limits section and enable the Per product option.

    4. Finally go to the Formula section and enable the Limit by formula option. Then, you may use a shortcode such as:

    [alg_wc_mppu user_id="40" product_id="20" limit="5"]
    [alg_wc_mppu user_id="50" product_id="20" limit="10"] 
    

    I hope you found this information useful. If you have any other questions or need assistance, please contact me.

    Kind regards,
    Moshtafizur

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