Top WooCommerce & WordPress Plugins › Forums › Maximum Products per User for WooCommerce › How can I restrict customers from purchasing products?
- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 6 replies, 2 voices, and was last updated 2 years, 2 months ago by
Ole Kroer.
- AuthorPosts
-
July 7, 2021 at 2:25 pm #100685
Ole Kroer
ParticipantHi Support
Is there a way to setup limit to 0 in formula limit. I have tried without success. the lowest is 1, can you help
regards
ole
July 9, 2021 at 11:55 am #100686Zohaib
ParticipantHi,
It would not be possible to set the maximum limit to 0. What that would mean is no user would be able to purchase the product with a limit of 0.
Can you please explain a little more on what you are trying to achieve and we might be able to help.
July 9, 2021 at 12:03 pm #100687Ole Kroer
ParticipantI have a shop with different products and different allowed maximum’s and some users is not allowed to buy some of the product, and my idea was to allow zero on specific users and products with no date limit
July 9, 2021 at 12:48 pm #100688Zohaib
ParticipantHi Ole,
I have passed your request to our development team. They will check the possibility of this. Can you please share the formula that you are using?
July 9, 2021 at 3:36 pm #100689Ole Kroer
ParticipantHi here is the formula i want to use
[alg_wc_mppu limit="0" user_id="285,286" product_id="1851,1652,1643,1800,1308,1330,1646,2207,1327,1640,2476,2309,2144,1936,1668,1649,1301" not_date_limit]
July 12, 2021 at 1:01 pm #100690Zohaib
ParticipantHi,
Can you please try this formula:
[alg_wc_mppu limit="-1" user_id="285,286" product_id="1851,1652,1643,1800,1308,1330,1646,2207,1327,1640,2476,2309,2144,1936,1668,1649,1301"]
When the limit is set to
0
– this actually means that there are no limitations (i.e. the customer can buy an unlimited number of this product)… While-1
means that he cannot buy any.July 12, 2021 at 1:11 pm #100691Ole Kroer
ParticipantThe -1 in the formula solved the issue, thaks
- AuthorPosts
- You must be logged in to reply to this topic.