Forums › Maximum Products per User for WooCommerce › How can I impose limit on my products and exclude some products from the limit? › Reply To: How can I impose limit on my products and exclude some products from the limit?
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