Events Made Easy › Forums › Bug fixed or feature request implemented › Hide payment processor buttons for price of "0" on registration form
Tagged: button, free, payment processor, registration form
- This topic has 12 replies, 2 voices, and was last updated 9 years, 1 month ago by Anonymous.
-
AuthorPosts
-
Thu 15 Oct 2015 at 05:41 #54991AnonymousInactive
If a price of “0” is recorded there is currently no option to disable the payment processor button or to display a different confirmation message on form submission. The status quo is confusing for registrants.
Recommendation: add a configuration option to hide payment processor buttons and text, and provide an alternative message.
Thu 15 Oct 2015 at 23:25 #55001FrankyKeymasterI’m wondering: should this be optional? There’s indeed no need to show a payment page if the price is 0 …
Fri 16 Oct 2015 at 03:29 #55007AnonymousInactiveGood point. Might be nice to be able to offer custom text though, e.g. to highlight the fact that they are paying nothing.
Fri 16 Oct 2015 at 15:45 #55008FrankyKeymasterThe message can be adjusted to your liking via conditional tags.
But for the rest, see if this change does it for you:
http://plugins.trac.wordpress.org/changeset/1267438Fri 16 Oct 2015 at 17:54 #55013AnonymousInactiveYes, that’s perfect! Thank you for this quick addition. I have also managed to get the conditional tags working—a flexible and easy-to-use feature!
Thu 22 Oct 2015 at 19:06 #55027AnonymousInactiveIs there a way for people that do not have to pay to be automatically approved? I can see a case for this being optional, since some people may always want to manage approvals.
I’m happy to do this in the rsvp hook for now. Can I just call eme_approve_booking()? How would I get the confirmation email to send (eme_email_rsvp_booking() ?), and disable the pending email?
Thu 22 Oct 2015 at 23:49 #55028FrankyKeymasterUse eme_update_booking_payed: eme_update_booking_payed($booking_id,$booking_payed,$approve_pending=0)
(search the code for some examples), that also sends out the mail if $booking_payed=1 and $approve_pending=1.
And if the approval status is 1, the pending mail doesn’t get send anyway 🙂Fri 23 Oct 2015 at 14:22 #55029AnonymousInactiveThat’s great thanks. The user is now auto approved if the price is 0! The confirmation email is sent, but the pending email is still being sent. Do I need to explicitly set approval_status (isn’t that just a shortcode?)?
Tue 27 Oct 2015 at 03:04 #55030AnonymousInactiveI’ve spent some time through eme_rsvp.php, but still can’t work this out. Some function is sending the pending email after my eme_insert_rsvp_action() returns. Would be grateful for a clue!
Tue 27 Oct 2015 at 23:34 #55046FrankyKeymasterSorry, but I checked my code and the action hook eme_insert_rsvp_action is called when the action is done, not before. There’s no method of changing an event settings (“auto-approve” or not) before doing the insert.
You could use the option to not send pending mails at all, and send the pending mail in the eme_insert_rsvp_action hook for those that need it. Calling eme_email_rsvp_booking($booking) in your hook should do that (but it is kind of unsupported).
Maybe the most correct method would be to call the eme_eval_booking_form_post_filter and to set the body of the pending mail to empty based on your conditions by then using eme_rsvp_email_body_text_filter. But then probably the “confirmed” mail you’re sending is also empty and won’t get sent.Wed 28 Oct 2015 at 18:49 #55048AnonymousInactiveThanks for the answer. I’ve given the eme_email_rsvp_booking($booking_id) method a try, but no email is sent. I think this code in eme_email_rsvp_booking() means the function won’t run if the send pending option is off:
`$mailing_pending = get_option(’eme_rsvp_mail_notify_pending’);
if ($booking[‘booking_approved’]==0 && !$mailing_pending) return;`Anyway, removing that code from eme_rsvp allows me to receive a pending email for paid submissions, but a pending email is still sent for free submissions. Even using:
eme_email_rsvp_booking($booking_id,"approveRegistration");
leads to a pending email being sent. Confused about why this is happening.
I don’t completely follow your second suggestion. Will the pending email still be sent, but blank?
Thu 29 Oct 2015 at 00:19 #55050FrankyKeymasterBlanks are never sent, but:
– first apply this changeset: http://plugins.trac.wordpress.org/changeset/1274944
– then use eme_eval_booking_form_post_filter to check the input
in there, use the newly available filter eme_rsvp_email_text_xxx_filter (or eme_rsvp_email_html_xxx_filter) and replace “xxx” by “pending_subject” (and “contact_pending_subject” if no pending mails are to be sent to the contact person either), so in this case: eme_rsvp_email_text_pending_subject_filter.
Use that filter eme_rsvp_email_text_pending_subject_filter to return an empty string (mails with either empty subject or body are not sent)Let me know the result 🙂
Thu 29 Oct 2015 at 03:13 #55052AnonymousInactiveAwesome, this seems to work perfectly! Thanks for your responsiveness and support. Donation heading your way.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.