WooCommerce Maximum Products per User

WooCommerce Maximum Products per User

Limit number of items your WooCommerce customers (logged) can buy

Description

With WooCommerce Maximum Products per User module you can set how many products can user buy. Products bought are calculated by lifetime stats (i.e. not per order). Please note, that there is no maximum quantity set for not-logged (i.e. guest) users. Product quantities are updated, when order status is changed to completed.

All Products

WooCommerce Maximum Products per User - Admin Settings - All Products Options

Enable section
Enables/disables “All Products” section.

Default: no
Maximum Allowed Each Product’s Quantity per User
This will set maximum quantity for each product globally.

Default:

Per Product

WooCommerce Maximum Products per User - Admin Settings - Per Product Options

Enable section
This will add new meta box to each product’s edit page.

Default: no

After enabling “Per Product” checkbox, please open some product’s admin edit page. There you will find two new meta boxes (“Booster: Maximum Products per User” and “Booster: Maximum Products per User: Sales Data”). In first one you will be able to set maximum quantity for the current product. Second one will display current sales data:

WooCommerce Maximum Products per User - Admin Settings - Per Product - Meta boxes

General Options

WooCommerce Maximum Products per User - Admin Settings - General Options

Customer Message
Replaced values: %max_qty%, %product_title%, %qty_already_bought%, %remaining_qty%.

Default:

You can only buy maximum %max_qty% pcs. of %product_title% (you already bought %qty_already_bought% pcs.).
Block Checkout Page
This will stop customer from accessing the checkout page on exceeded quantities. Customer will be redirected to the cart page.

Default: no
Calculate Data
This will calculate data for older orders.

Accessible through:

  • WooCommerce > Settings > Booster > Shipping & Orders > Maximum Products per User

Tested on WooCommerce 4.0.0 and WordPress 5.3.2Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

WooCommerce Booster ModulesWooCommerce Maximum Products per UserWooCommerce Orders

#comment>

#comment>

#comment>#comment>#comment>

Leave a Reply Click here to cancel reply.

#comment>

Comments

11 Comments

  1. John November 7, 2019 at 8:52 pm#comment>

    Is there any way to limit a user’s total lifetime items (i.e. only allow a user to purchase x unique items)?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ November 8, 2019 at 8:29 am#comment>

      Hi John,

      Unfortunately it’s not currently possible to limit total amount of items but we have added this to our to-do list.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  2. #comment>

  3. Ido February 20, 2019 at 10:28 am#comment>

    Hi!
    Is it possible to reset the limitation on a time basis? For example, limit X quantities of a certain product per user, but allow the user to purchase this quantity again next week.
    Thanks!

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ February 20, 2019 at 10:43 am#comment>

      Hi,

      Unfortunately that’s not possible yet but we have added it to our todo list.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    • Borja March 18, 2020 at 2:02 pm#comment>

      I’m looking for this specific feature. I wonder if this feature has been added after a year of this being posted.

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  4. #comment>

  5. mikeeman2000 December 20, 2018 at 6:53 pm#comment>

    Have you have a way to reset sales order data? I want to limit quantities per user as of a specific date.

    Thanks

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ December 20, 2018 at 6:54 pm#comment>

      Hi,

      Unfortunately that is not possible yet but we have added it to our todo list,

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  6. #comment>

  7. Luca December 4, 2018 at 9:51 pm#comment>

    Really appreciate this module! I am using Booster Plus for all my websites and just enabled this module on one of the sites.
    This is definitely what I need but I found it’s not working for variable products during my testing. I tried to add some same size of a variable product to the cart, for example, 10 of xs Tees. And I was able to proceed to checkout even I met the max limit. I also tried a combination of different sizes and it didn’t work, either.

    Could you please advise if this module is not designed for variable products? As it’s working perfectly with simple products.

    Much appreciated,

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  8. #comment>

  9. Eric Khoo August 27, 2018 at 12:24 pm#comment>

    This module is really good for me. I bought the Booster Plus to get it the Product Level feature.

    All I need extra is a way to reset the sales order data (history) either manually or be auto recurring periods.
    Perhaps Daily, Weekly, Monthly, Annually.

    Thanks

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ August 27, 2018 at 3:55 pm#comment>

      Hi Eric,

      We have added your suggestion to our todo list.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    • rudek December 16, 2018 at 1:24 pm#comment>

      yep, definitely need a way to reset the sales data per user! Without this, we can not use the max product function. Example: user buys a product with limit=1. User returns the product because it is defective or user cancels a subscription. User wants to buy the same subscription in 3 months again, but it is forbidden. Quite annoying. Canceling the order or canceling the subscription should remove 1 instance from the user’s sales data.

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  10. #comment>

#comment>#comment>#comment>#comment>

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

This site uses Akismet to reduce spam. Learn how your comment data is processed.