Hi, I have tested the code and found an unusual error. When a user makes a purchase of some product and if the status is "pending" the condition still shows the content. Does anyone know a way to fix it.
No. You'd have to modify the snippet shown at 3:00. PMP is a completelly different plugin to EDD, so "edd_has_user_purchased" function & "EDD_recurring_subscriber" class won't exist in PMP. Find a PMP alternative for "edd_has_user_purchased" function & "EDD_recurring_subscriber" class/methods and you'll be good to go. I did a quick Google search and seems like a replacement for EDD's "edd_has_user_purchased" is PMP's "pmpro_hasMembershipLevel" function (www.paidmembershipspro.com/documentation/content-controls/require-membership-function/). For a quick & dirty solution simply replace every occurrence of "edd_has_user_purchases($current_user, $value)" with "pmpro_hasMembershipLevel($value, $current_user)". As for checking for status of a recurring subscription, that's more complex, so not sure how PMP does it. You may need a plugin like www.paidmembershipspro.com/add-ons/subscription-check/ & then also a way to hook into it to check if the recurring subscription is still active.
Can we do the condition by the user role? never use EDD before wondering if there any different between subscribe level for the user role and they both the same user role
Simple Membership is a free membership plugin with a recurring payment feature. What's the advantage of using the EDD Recurring Payments plugin?
You manually coding your work or depending on a plugin update.
@@alwayzfwdbeatz you didn't answer the question mate.
Hi, I have tested the code and found an unusual error. When a user makes a purchase of some product and if the status is "pending" the condition still shows the content. Does anyone know a way to fix it.
Is this logic gonna work with paid memberships pro free version?
No. You'd have to modify the snippet shown at 3:00. PMP is a completelly different plugin to EDD, so "edd_has_user_purchased" function & "EDD_recurring_subscriber" class won't exist in PMP. Find a PMP alternative for "edd_has_user_purchased" function & "EDD_recurring_subscriber" class/methods and you'll be good to go.
I did a quick Google search and seems like a replacement for EDD's "edd_has_user_purchased" is PMP's "pmpro_hasMembershipLevel" function (www.paidmembershipspro.com/documentation/content-controls/require-membership-function/). For a quick & dirty solution simply replace every occurrence of "edd_has_user_purchases($current_user, $value)" with "pmpro_hasMembershipLevel($value, $current_user)".
As for checking for status of a recurring subscription, that's more complex, so not sure how PMP does it. You may need a plugin like www.paidmembershipspro.com/add-ons/subscription-check/ & then also a way to hook into it to check if the recurring subscription is still active.
@@TheCredibleHulk Great answer. Thanks dude 👍🏼
Can we do the condition by the user role? never use EDD before wondering if there any different between subscribe level for the user role and they both the same user role
This is way too advanced for your average user -
To be fare they do have a ton of tutorials for beginners. Its good to see what you can do with Oxygen builder, beyond the basics 🙂