How can I limit lessons to per memberships?

Forums Maximum Products per User for WooCommerce How can I limit lessons to per memberships?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #100342
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Anne,

    Could you please let me know if each membership type has its own user role? Or those are not connected?

    #100343
    Anne
    Guest

    It does not. I haven’t done anything with user roles, but could. Was trying to figure out how to create new roles.

    #100344
    Tom Anbinder
    Moderator
    Plugin Support

    Ok, if you will be able to connect memberships and user roles, then you will just need to enable “User roles” checkbox in plugin settings and then set max quantities for each user role (and optionally product).

    If you won’t be able to connect it with user roles – I will have to add some code to the plugin to make it work with memberships.

    #100345
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Anne,

    We’ve released new plugin v2.4.2 today, where I’ve added new membership_plan attribute to the “Formula” section. So now you can set max quantities per membership plan (i.e. without user roles). Basically now you need to add something like this to the “Formula” option:

    [alg_wc_mppu_max_qty max_qty="2" membership_plan="silver,gold"]
    

    I.e. in this example you will set the max quantity to 2 pcs. for all users with silver or gold membership plan (you need to use membership plan slugs here).

    If you want to set different max quantities for different products, then you need to enable “Per Product” checkbox in “Quantities” section and set “Formula” to e.g.:

    [alg_wc_mppu_max_qty max_qty="2" membership_plan="silver,gold" product_id="101,102"]
    [alg_wc_mppu_max_qty max_qty="1" membership_plan="silver,gold" product_id="103,104"]
    

    Please let me know if something is not working as expected or if you have any questions.

    P.S. If you wish, you can also share an admin account to your site, so I could log in and help you with it (my email is [email protected]).

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