alvinlan
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Login RedirectionHi there,
Of course not, I just changed the function name when I paste it here. I use underscores for the function name.
Now, all normal login will go to the dashboard page, which not following the function that works previously. Is this filter cannot be used anymore when we use theme-my-login?
N.b. for now, I just changed the default dashboard page to another specific page to cope with this situation.
Hi @jarryd-long
I think the problem is more on the IPN or connection between PayPal and our website. Because the
pmpro_after_checkout
is only run after the first purchase, on the recurring payment it is not running at all. Same withpmpro_subscription_payment_completed
not fired at all.Hi @jarryd-long
I have tried to troubleshoot the IPN and test it in a few iterations through daily subscription, unfortunately it is still doesn’t work.
What I want to achieve: To see any updates/changes on the user’s membership “account page” (e.g. new row in invoices table) when a successful recurring payment happens.
Result: The recurring payment created properly on PayPal after the first payment. Amount deducted and received properly on users and our PayPal account on daily basis. But, there are no updates on the invoices table or anything that indicate the membership successfully renewed.
I have IPN turned on and the IPN messages disabled on PayPal. Already test the IPN link on DEBUG mode and receive the messages on email with different timestamps every time.
Any idea how to make this works?
Thanks @jarryd-long
I’m reviewing the IPN now, will need to check if this is works after the next recurring payment is done.
I’m using PayPal express.
So, I guess this
pmpro_after_checkout
will work on recurring payment through PayPal express (I have enable the IPN).Let me try this.
Hi @jarryd-long
Thanks.
I have tried to create a daily subscription without an expiration date and subscribed to that level. The first payment is working properly. In my subscriber PayPal, it is already created as an automatic daily payment.After a day, my subscriber PayPal gets charged again and the money received properly on the merchant PayPal. But there are no updates on (PMPro account) page of the subscriber account. The last payment on the “invoices” section still only the first payment. Is this normal?
Hi @jarryd-long
Thanks for your answer.
Is
pmpro_after_checkout
filter also fired on subscription payment? (e.g. the second and third payment of billing cycle)Hi @ronalfy
Thanks for your response, that’s very clear.
The only problem is, seems this “pmpro_subscription_payment_completed” doesn’t run when someone successfully checkout. I put the code below on my functions.php just to see if this action works (already tried setcookie, etc. inside the function) but seems the code inside custom_pmpro_subscription_payment_completed didn’t run at all.
function custom_pmpro_subscription_payment_completed($morder) { $mailResult = wp_mail( '[my-email]', 'test if mail works', 'hurray' ); } add_action("pmpro_subscription_payment_completed", "custom_pmpro_subscription_payment_completed", 10, 1);
I still try to debug this, I’m using PayPal Express and using a sandbox setting. How to use this action properly?
Hi @ronalfy,
Thanks for your response. So, this is the action pmpro_subscription_payment_completed, right?
Is this action also run when users subscribe for the first time? Or only runs upon renewal?
Forum: Plugins
In reply to: [Theme My Login] Redirection after login doesn’t workHi,
I have figured out the issue, it is due to unexpected cookie error.
I tried to rollback the plugin to the previous version, and I can see the warning messages appeared (on v7.1 it shows nothing just stuck on the page). With this, I have a clue to debug and track the error. When the warning has been handled properly, I update it again to v7.1 and works fine now.
Thanks, Jeff!
Forum: Plugins
In reply to: [Theme My Login] Redirection after login doesn’t workHi Jeff,
No errors at all in the browsers js console. Actually, that’s what makes me so confused.
So, I’m not logged in. And after I fill the username and password field correctly, and then press login it looks like nothing happened. The view is still the same, no reload, no message, nothing. But when I refresh the page, I can notice that I’m already logged in. This means the login was successful but only no reload/redirection/response/message/etc.
Forum: Plugins
In reply to: [Theme My Login] Redirection after login doesn’t workNo, it is not. It is just a hidden HTML element that become visible when triggered
Thank you for the response.
Seems it is come from one of the chrome extension. I tried to disable all extension, and it works fine.
- This reply was modified 5 years, 9 months ago by alvinlan.