- Support forum for the Maximum Products per User for WooCommerce.
September 27, 2022 at 8:14 am #101052
- We have been using the plugin for a while now and we now want to limit all the products on our website and exclude some products, I noticed it’s not working, do I have to resync the data of the entire store first? Also, once I limit everything, can I still edit products individually?
- Currently, we are looking for something that can give us conditional max products per user. When we stock an item with 1000 products, we would want the max to be 12 items per user, but when the stock quantity drops to 500 products, we would want the max products per user to automatically drop to 3 items per user. Is it something this plugin can do or you sell another plugin that can do it, or you can do custom work to have this feature implemented?
Regards.September 27, 2022 at 1:37 pm #101053
Thanks for reaching out.
You can exclude specific products from the limit. To do so, you would need to utilize the Formula section. For example, if you want to limit the purchase of all products to 5 and want to exclude specific products from that limit, then in the plugin’s settings, under the Formula section, you would need to enable the Limits by formula option and then paste the following shortcode:
[alg_wc_mppu limit="99999999" product_id="10, 20, 30"] [alg_wc_mppu limit="5"]
In this shortcode, the
10, 20, 30are the IDs of products you don’t want to impose any limit on.
> “Also, once I limit everything, can I still edit products individually?”
You may still set a separate limit for a particular product after imposing a limit on every item in your store. In such a situation, you would need to add another shortcode to the Formula field’s first line, such as:
[alg_wc_mppu limit="10" product_id="23"] [alg_wc_mppu limit="99999999" product_id="10, 20, 30, 40"] [alg_wc_mppu limit="5"]
Here, a product with only an ID of
23would have a limit of
Regarding the second issue, we are sorry to let you know that at this moment, it is not possible with our plugin. However, I have passed your request to the development team. They will check the viability of this and will get back to you as soon as they can.
I hope it helps. If you have any questions, kindly let us know.
MoshtafizurSeptember 28, 2022 at 10:00 am #101054
Thank you for the response would try it out, can I also use this formula for product categories?September 28, 2022 at 11:01 am #101055
I hope you are well today.
You can use the Formula section for product categories as well. But in the plugin’s settings, under the Limits section, you would need to enable the Per product category option. Now if you want to limit the purchase of all products to
5and want to impose a different limit for a particular category, let’s say the category name is categoryX with a category ID of
30, then in the Formula field, you can use shortcodes such as:
[alg_wc_mppu limit="10" term_id="30"] [alg_wc_mppu limit="5"]
As a result, only products from categoryX would have a total purchase limit of
I hope it helps. If you have any questions then please let us know.
MoshtafizurSeptember 28, 2022 at 4:51 pm #101056
So i tested it and it works, but we have over 700 products and it would be tedious getting all the product ids we want to exclude and putting in seperate limit shortcodes for lets say if we want to do that for 100 out of them, that’s alot, it would have been easier to use the max user box within the products to do the editing. (https://ibb.co/7z2RXCy). Why can’t it be used?September 29, 2022 at 6:58 am #101057
Thanks for following up.
If you want to set a product’s purchase limit from the product edit page, then please follow the general steps below:
1. First, in the plugin’s settings, please disable the Formula section.
2. Then go to the Limits section and enable the All products option and from the Limit per user field, set the limit for each of your products.
3. Then enable the Per product option.
4. Now you will be able to set different limits for any product from its product’s edit page’s meta box.
Please give it a try. If you have any questions, please let us know.
- You must be logged in to reply to this topic.