Hello Christophe,
I hope you are well today.
Let’s say you want to limit userX and userY’s purchases of productA to 5
and 10
quantities in a lifetime, respectively. UserX and userY each have user ids of 40
and 50
, whereas ProductA has a product id of 20
. Then you would need to follow the general settings below:
1. At first please navigate to WooCommerce > Settings > Maximum Products per User > General and set Mode to Product quantities
, Date range to Lifetime
and the Order statuses to appropriate order status
.
2. Next, navigate to the the Limits section and enable the Per product option.
4. Finally go to the Formula section and enable the Limit by formula option. Then, you may use a shortcode such as:
[alg_wc_mppu user_id="40" product_id="20" limit="5"]
[alg_wc_mppu user_id="50" product_id="20" limit="10"]
I hope you found this information useful. If you have any other questions or need assistance, please contact me.
Kind regards,
Moshtafizur