How can I impose limit on my products and exclude some products from the limit?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I impose limit on my products and exclude some products from the limit?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #101052
    blankTina
    Participant

    Hello,

    1. 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?
    2. 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.

    #101053
    blankMoshtafizur
    Moderator
    Plugin Support

    Hello Tina,

    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, 30 are 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 23 would have a limit of 10.

    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.

    Kind regards,
    Moshtafizur

    #101054
    blankTina
    Participant

    Hello,

    Thank you for the response would try it out, can I also use this formula for product categories?

    #101055
    blankMoshtafizur
    Moderator
    Plugin Support

    Hello Tina,

    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 5 and 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 10.

    I hope it helps. If you have any questions then please let us know.

    Kind regards,
    Moshtafizur

    #101056
    blankTina
    Participant

    Hello,

    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?

    #101057
    blankMoshtafizur
    Moderator
    Plugin Support

    Hello Tina,

    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.

    Kind regards,
    Moshtafizur

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