How can I restrict users from purchasing products based on their user role?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I restrict users from purchasing products based on their user role?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #100586
    Huzaifa
    Participant

    Hi, I have an e-commerce site with membership and I want to restrict users to purchase products based on their role. For example:
    Role 1: Can purchase 1 Product Per Month

    Role 2: can purchase 2 Product Per Month

    Role 3: can purchase 3 Product Per Month

    I have tried to achieve my requirements with your plugin but it’s not working. I want to restrict users on All shop items. For example, I have 20 Items in my shop. I want customers to purchase only 1/2/3 Products per month based on their role. Please guide me if this can be achievable?

    Thanks

    #100587
    Huzaifa
    Participant

    Hi, any update?

    #100588
    Zohaib
    Participant

    Hi Huzaifa,

    Restricting products based on user roles is possible. Some settings will depend on your setup, however, here is a typical configuration for restricting products based on User roles.

    Here is a typical setup:

    WooCommerce > Settings > Maximum product per user > General

    A couple of things to configure here:

    1. Mode > Product Quantities
    2. Date range > As per your requirements
    3. Order statuses > As per your requirements
    4. User roles > Enable

    Save the settings. Then go to the limits tab and configure the following:

    1. All products > Enable
    2. Limit per user: “role” > You will find various user roles and you can set limits for each role.

    Please let me know if you need further assistance with this.

    #100589
    Huzaifa
    Participant

    Hi, Thanks zohaib for replying. I want to restrict users on all the shop products that they can only buy 2,3 products in total. The plugin setting is for each product like if someone bought a bag from the shop, he can’t again buy the same bag, but he can buy any other product. But I want, if someone bought a bag and he wants to buy another product like a shirt, he should not be able to buy it because he already bought one product for the month.
    Can I do that using this plugin? If I add all the products in variation or if I add all the products in the same category? Like My, all shop products belong to the category “Bags”. The users should only buy 1,2,3 products based on their role from this category. Is this possible? I’m waiting for your response.

    Thanks

    #100590
    Huzaifa
    Participant

    Hi?

    #100591
    Zohaib
    Participant

    Hi,

    With the setup mentioned above for user roles, the user will not be able to purchase products beyond their limits. The limit will be per user role and not per product.

    What you are mentioning regarding, a user being restricted per product rather than the whole shop, is a different setup. It means you are using different settings. Possibly under the Limits tab you have per product category or per product enabled? Can you try and disable those.

    It looks like you want to restrict maximum products based on user roles. In that case there is no need to restrict products based on categories. Unless you have a need for that too.

    #100592
    Huzaifa
    Participant

    Hi, I have tried every Possible Setting but it’s only working for each product, not for all shop items. I have attached the link to screenshots. Please tell me if this can be achievable with Pro Version. Thanks, https://drive.google.com/drive/folders/1IenOHf_WlzdzZsjbG3QrJFB_So4MB3Kq?usp=sharing

    #100593
    Zohaib
    Participant

    Hi Huzaifa,

    Is it possible for you to share your WordPress dashboard access with us. We can then have a look for you.

    The setup to limit products by user role is simple.

    You can share your access on [email protected]

    #100594
    Huzaifa
    Participant

    Hi Zohaib, Thanks for your guidence. I purchased the plugin and it solved my problem. Thank you very much.

    #100595
    Zohaib
    Participant

    Hi Huzaifa,

    Happy to help 🙂

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