Why is the per-membership limit not working?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce Why is the per-membership limit not working?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #100346
    Hitesh Patel
    Participant

    Hello,

    I’m looking to limit max products based on their “Membership Plans” for the year.
    I’ve got your PRO version and I use “Max Quantity by Formula”

    [alg_wc_mppu_max_qty max_qty=”4″ membership_plan=”Family Membership 2020 (#273)”]
    [alg_wc_mppu_max_qty max_qty=”2″ membership_plan=”couple-membership-2020″]
    [alg_wc_mppu_max_qty max_qty=”1″ membership_plan=”student-membership-2020″]

    It’s not working. Am I missing something?

    #100347
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Maybe it’s possible to share an admin account to your site, so I could log in and check what’s going on (my email is [email protected])? If sharing an account is not an option – let me know and I will solve this remotely.

    #100348
    Hitesh Patel
    Participant

    Done! I’ve created the account for you my site (GCAOttawa.ca).
    Thank you!

    #100349
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    I’ve just logged in to your site.

    1. You need to use membership plan slug instead of title, so I’ve replaced “Family Membership 2020 (#273)” with “student-membership-2020” in “Formula”.

    2. Please note that you have set quantities to be updated only when order is “Completed” (in “Order statuses” option in “General” plugin settings section).

    Please let me know if that solves it. If not – I will continue investigating. And in this case – maybe you have some test user assigned to some membership plan, so I could login as this user and test it?

    #100350
    Hitesh Patel
    Participant

    Hello Tom,

    Thank you for the response back.
    1. I will use the membership plan slug. <– I really needed to know this.
    2. I believe that the setting is correct.

    I am testing it with a product "test-sample-ticket". My user account is part of the "family-membership-2020" plan has been able to buy more than the 4 allowed.
    Should I change the settings in your point 2?

    I don't want the members to be able to add more in their cart after their maximum. Am I missing something?

    #100351
    Tom Anbinder
    Moderator
    Plugin Support

    If anyone else has a similar issue – we’ve discovered a bug today – you need to enable one of the checkboxes in the “Quantities” section for “Formula” to become active. We will be releasing the fix as soon as possible, meanwhile, you can simply enable e.g. “Per product” checkbox (in “WooCommerce > Settings > Maximum Products per User > Quantities”). If you won’t then set any actual max quantities on the product edit pages, this checkbox won’t have any other effect, except fixing it, i.e. making “Formula” active.

    #100352
    Tom Anbinder
    Moderator
    Plugin Support

    Just wanted to let you know – this is now fixed in plugin v2.4.3 – i.e. it’s no longer required to have any of the “Quantities” checkboxes enabled for “Formula” to be active.

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