pmProbeg
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Connect] [Plugin: Social Connect] Cannot login with WordPress.comDid you ever figure this out? I have the same problem as you.
Thanks.
PM PRO has a js function which disables the submit button so that the user does not submit to checkout twice. I should have done my research before posting,sorry. Hope this helps someone.
The problem was the javascript on the bottom of the page! Wow … It was disabling all submit buttons.
Thank you. See below ??
Alright, yes I am POSTing to the checkout.php page. So, my form should look like this then?
checkout.php:
<form action=”#” method=”POST”>
<input type=”hidden” value=”<?$pmpro_level->id?>” />
<input type=”submit” name=”btn_post_bill_info” value=”Go”/>
<form>Is this what you were trying to explain to me?
I appreciate your help very much, thanks.
OHH that clears it up, thanks so much!!
Thank you very much. I read both of the links you sent me and I have a strong understanding of hooks now. I see that you must first add_action and define the function’s name and then you must use “do_action” to call the hook itself.
Now, when looking at your code I see “do_action(“pmpro_after_checkout”)” but I do not see ANYWHERE add_action(‘pmpro_after_checkout’) – I looked through all PHP files (nearly 50 of them it seems).
Where on earth are you defining this function “pmpro_after_checkout”?
If this is not important, I suppose I would want to add my own hook following this line:
do_action(“pmpro_after_checkout”) to ensure that the payment went through – is that right?Thanks again for everything, making a lot more sense now.
Alright, thank you for the help. I’m going to ask one more question, hopefully it’s a simple one to be answered.
What exactly do you mean by a “hook”? I see it everywhere but I do not understand its purpose.
Thanks,
Your new #1 fan.