Setup for

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #101784
    Bendik Bergan
    Participant

    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

    #101791
    Moshtafizur
    Moderator
    Plugin Support

    Hello Bendik,

    Thanks for purchasing our plugin.

    To limit five products per week for each customer, please follow the general steps below:

    1. First, please go to General > Settings > Maximum Products per User > General, set Mode to Product quantities, Date range to This Week, and set Order statuses to the appropriate order status.
    2. 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,
    Moshtafizur

    #101798
    Bendik Bergan
    Participant

    You 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?

    #101800
    Moshtafizur
    Moderator
    Plugin Support

    Hello 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 to 1. 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,
    Moshtafizur

    #101817
    Bendik Bergan
    Participant

    I 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 week

    Is that possible?

    #101843
    Moshtafizur
    Moderator
    Plugin Support

    Hello 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 to This Week, and set Order statuses to the appropriate 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,
    Moshtafizur

    #101941
    Bendik Bergan
    Participant

    I 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”?

    #101954
    Moshtafizur
    Moderator
    Plugin Support

    Hello 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

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