- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 7 replies, 2 voices, and was last updated 1 year, 12 months ago by Moshtafizur.
-
AuthorPosts
-
November 11, 2022 at 9:40 am #101784Bendik BerganParticipant
Hello!
We have five products (one for each weekday), and want to limit those per customer per week.
Meaning:
A customer can only order those 5 products, once per week.How would we configure plugin for this? I just bought Pro version
November 11, 2022 at 10:40 am #101791MoshtafizurParticipantHello Bendik,
Thanks for purchasing our plugin.
To limit five products per week for each customer, please follow the general steps below:
- First, please go to General > Settings > Maximum Products per User > General, set Mode to
Product quantities
, Date range toThis Week
, and set Order statuses to theappropriate order status
. - Then please go to the Limits section and enable the All products option and set Limit per user to
5
.
I hope it helps. If you have any other questions, then please let us know.
Kind regards,
MoshtafizurNovember 11, 2022 at 11:50 am #101798Bendik BerganParticipantYou wrote:
Then please go to the Limits section and enable the All products option and set Limit per user to 5.What we want to achieve:
Each customer can only order
1 of product “Monday”
1 of product “Tuesday”
1 of product “Wednesday”
1 of product “Thursday”
1 of product “Friday”Per week.
So is your setup still correct?
November 11, 2022 at 12:24 pm #101800MoshtafizurParticipantHello Bendik,
Thanks for providing more information.
In such a case, you would need to set General Options > Date range to
This day
then in the Limits section, you would need to set the Limit per user to1
. However, It is not possible to restrict consumers from purchasing on weekends using our plugin. So, the user would still be able to buy on weekends.If you have any questions, then please let us know.
Kind regards,
MoshtafizurNovember 11, 2022 at 2:41 pm #101817Bendik BerganParticipantI think you misunderstand what we want to achieve.
What we want to achieve:
User role “Students” can only order “Product x” one time per week
User role “Students” can only order “Product y” one time per weekIs that possible?
November 11, 2022 at 6:17 pm #101843MoshtafizurParticipantHello Bendik,
Please follow the general steps below to limit one item of each product per week for customers with the students user role:
1. First, please go to General > Settings > Maximum Products per User > General, set Mode to
Product quantities
, Date range toThis Week
, and set Order statuses to theappropriate order status
.2. Then in the Limits section, please disable the All products option if you have enabled it before.
3. Next, please go to the Formula section and enable the Limits by formula option, then in the Formula field, paste a shortcode such as:
[alg_wc_mppu limit="1" user_role="students"]
Then customers with a single user role would then be limited to purchasing one item of each product per week.
I hope it helps. If you have any questions, then please let us know.
Kind regards,
MoshtafizurNovember 14, 2022 at 7:51 am #101941Bendik BerganParticipantI think that worked. Awesome. What if I have another user role group I want to apply this for? Lets say that the rule also should apply to “teachers”?
November 14, 2022 at 9:30 am #101954MoshtafizurParticipantHello Bendik,
I hope you are well today.
If you want to apply the same limit for the teachers user role, then your settings in the General and Limits sections should be the same as before. But you would need to add the teachers user role to the shortcode, like below:
[alg_wc_mppu limit="1" user_role="students, teachers"]
I hope it helps. If you have any questions, then please let us know.
Kind regards,
Moshtafizur - First, please go to General > Settings > Maximum Products per User > General, set Mode to
-
AuthorPosts
- You must be logged in to reply to this topic.