How can I set two different limits for two different customer roles?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I set two different limits for two different customer roles?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #100996
    George
    Guest

    Hey, I’m struggling to understand from the documentation how the plugin works, so I’ll try and explain my use case and hopefully someone can advise what configuration to use.

    There are two user roles on my site, Customer and Membership. Membership describes users who have a monthly subscription to my site.

    My site sells digital downloads. Customers should be limited to 1 product per week. So, if they order/ download one product, they can not order any other item from the store for 7 days. I need to avoid them adding >1 product to the cart and circumventing the restriction by ordering multiple products at once.

    Membership users should be able to place unlimited orders, unrestricted.

    #100997
    Moshtafizur
    Moderator
    Plugin Support

    Hello George,

    Thanks for reaching out.

    Please follow the general settings below in order to achieve what you are looking for:

    1. Assign a particular tag to each of your products.

    2. Then navigate to WooCommerce > Settings> Maximum Products per User> General and set Mode to Product quantitiesDate range to This week and the Order statuses to appropriate order statuses.

    3. Now, scroll down to the User roles option and enable that option and set the Customer user role from the field below.

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

    5. Finally, go to Products > Tags > Your tag > Edit and set Limit per user: Customer to 1.

    I hope that helps. Please let me know if you have any other question or need assistance.

    Kind regards,
    Moshtafizur

    #100998
    George Collier
    Participant

    Hi Moshtafizur

    This works, except customers can just add two or more products to the cart and order them at once to circumvent the 1 per week limitation. How can I prevent them from ordering more than one product at once?

    #100999
    Moshtafizur
    Moderator
    Plugin Support

    Hello George,

    Thanks for following up.

    > except customers can just add two or more products to the cart and order them at once to circumvent the 1 per week limitation.

    Could you kindly give us more information on this? Is the limit not working for your logged-in user or for the guest users?

    Please let me know.

    Kind regards,
    Moshtafizur

    #101000
    George Collier
    Participant

    Guest users are able to add >=2 items to the cart. So, customer can add (for example) 3 products to cart, and then order, even though the product quantity limit is set to 1 per week.

    #101001
    George Collier
    Participant

    I have already set ‘

    • Do nothing but block guests from purchasing products beyond the limits’
    #101002
    Moshtafizur
    Moderator
    Plugin Support

    Hello George,

    Thanks for following up.

    I think in your case, you should set the Guests option to Block guests from buying products. Then users with only Customer user role will be able to buy 1 product per week.

    Please let me know if it doesn’t help.

    Kind regards,
    Moshtafizur

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