Home › Forums › Maximum Products per User for WooCommerce › How do I reset the sales data for a user when they purchase a subscription?
- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 6 replies, 3 voices, and was last updated 11 months, 4 weeks ago by
Pablo.
- AuthorPosts
-
June 11, 2022 at 8:04 am #100973
Tahir
GuestHi. 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!
June 11, 2022 at 6:30 pm #100974Hi 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.
June 13, 2022 at 4:38 am #100975tahir
Guestthank 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?
June 13, 2022 at 5:12 am #100977tahir
GuestIt 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.
June 13, 2022 at 12:32 pm #100976Hello 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,
MoshtafizurJune 13, 2022 at 1:48 pm #100978Tahir
Guest
Yes I did. But it shows the shortcode as it is on front-end not the output.
June 13, 2022 at 6:19 pm #100979Hi 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].
- AuthorPosts
- You must be logged in to reply to this topic.