How can I limit memberships using formula?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #100772
    Ugene Tang
    Participant

    Hi I have the WooCommerce membership plugin. How do I use the formula shortcode?

    #100773
    Ugene Tang
    Participant

    I have got the PRO version of your plugin and this membership plugin (https://woocommerce.com/products/woocommerce-memberships/).

    #100774
    Zohaib
    Participant

    Hi,

    In the plugin’s settings, in the formula tab you can enter the formula to use.

    To limit a product by membership level you can use a formula such as:

    [alg_wc_mppu limit="5" membership_plan="basic"]

    This will set the maximum limit of 5 products for the “basic” membership level. This is just an example though, and you exact formula will depend on your setup.

    #100775
    Ugene
    Guest
    [alg_wc_mppu limit="1" memberhsip_plan="1-time-trial-membership" product_id="1197"]

    I have used the formula above, but I could still purchase the product (1197). Is the membership plugin compatible with your plugin?

    #100776
    Ugene
    Guest
    [alg_wc_mppu limit="1" memberhsip_plan="1-time-trial-membership" product_id="1197"]

    I made 1 purchase but was still able to purchase more after the first purchase.
    The membership slug is 1-time-trial-membership and the product id is 1197.

    I wish to limit the purchase to just 1 time.

    #100777
    Zohaib
    Participant

    Hi,

    In the plugin’s settings General > Order statuses please make sure the relevant order statuses are selected for which the limits should apply.

    #100778
    Ugene Tang
    Participant

    Hi,

    The order statuses are set correctly to “Completed”.

    #100779
    Pablo
    Moderator
    Plugin Support

    Hi Ugene,

    If you’re using the product_id attribute for the shortcode, please make sure to enable the “Limits > Per product” option.

    Let me know if it helps

    #100780
    Ugene Tang
    Participant

    Hi, the per product is also enabled. But the plugin is still not correctly detecting the number of times a user can buy a product.

    #100781
    Zohaib
    Participant

    Hi,

    If the order status is set to completed, it means the limits will only apply to users whose order status is marked as completed. Usually when a WooCommerce order is placed by default the order status is Processing. Can you try and add the processing status in General > Order statuses. 

    #100782
    Ugene Tang
    Participant

    Hi,

    The order is set to Complete and Processing from the beginning. It’s not able to correctly detect the number of times a user has purchased the class. As members can only purchase a limited amount of class for each membership. It applies the wrong formulas.

    Is this membership plugin (https://woocommerce.com/products/woocommerce-memberships/) really compatible with your plugin?

    #100783
    Pablo
    Moderator
    Plugin Support

    Yes, this is the membership plugin compatible with our plugin.

    Would it be possible for you to create/share an admin account to your server (WP and preferably FTP), so I could login and check what’s going on? If that’s the case, please send a message to [email protected]

    #100784
    Ugene Tang
    Participant

    Hi Pablo,

    I have sent the required accounts to the email address.

    #100785
    Pablo
    Moderator
    Plugin Support

    Hi,

    I’m just writing here to possibly help other users. The issue was a typo with the shortcode attribute:

    [alg_wc_mppu memberhsip_plan=""]

    instead of the correct one:

    [alg_wc_mppu membership_plan=""]
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.