How do I reset the sales data for a user when they purchase a subscription?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How do I reset the sales data for a user when they purchase a subscription?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #100973
    Tahir
    Guest

    Hi. First of all thank you for your active support related to plugin queries. I went through a recent discussion and found out this. Here support staff says to put the short code in tab content in the front-end of MPPU, but it doesn’t work. I put the shortcode and it shows me as a short code at user-end not the limit.

    The main question I wanted to ask is how to reset sales data for a user when they purchase a subscription? I am working on a website where I have to restrict user with quarterly subscription to only 10 document purchases per month which I have already done. The problem is that if user has bought some documents before buying subscription, those purchases are also tracked and they contribute to the limits. I want to either not track sales data of non-subscribers or reset sales data of a user when they purchase a subscription. Thank you again!

    #100974
    Pablo
    Moderator
    Plugin Support

    Hi Tahir,

    When the users purchase the subscriptions, do their user roles change? If that’s the case and you just need to restrict the quarterly subscription users, please try to use our formula section. Let’s suppose their user roles change to quarterly_subscription. This is how you could set it up:

    [alg_wc_mppu user_role="quarterly_subscription" limit="10"]

    Let me know if it works.

    #100975
    tahir
    Guest

    thank you. and what about the other part of my question! I tried showing term limits i.e. Limits on my documents category using the shortcode [alg_wc_mppu_user_terms_limits] but it didn’t work. Any guidance on that?

    #100977
    tahir
    Guest

    It didn’t work as well. In documentation I saw that when user purchases a subscription their role changes from customer to subscriber. I used the shortcode but it didn’t work as required. Would you please look into it? Is there a way that user’s sales data can be reset after they buy a subscription, so as to calculate sales data from scratch using the limits.

    #100976
    Moshtafizur
    Moderator
    Plugin Support

    Hello Tahir,

    I hope you are well today.

    Could you please ensure that you have used the shortcode in the My account tab > Tab content field in the Frontend section of the plugin’s settings?

    Please let me know,

    Kind regards,
    Moshtafizur

    #100978
    Tahir
    Guest

     
    Yes I did. But it shows the shortcode as it is on front-end not the output.
     

    #100979
    Pablo
    Moderator
    Plugin Support

    Hi Tahir,

    Can you please create/share an admin account to your server (WP and preferably FTP), so I could log in and check what’s going on? If that’s the case, you can send an email to [email protected].

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