Events Made Easy Forums Bug fixed or feature request implemented Hide payment processor buttons for price of "0" on registration form

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #54991
    Anonymous
    Inactive

    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.

    #55001
    Franky
    Keymaster

    I’m wondering: should this be optional? There’s indeed no need to show a payment page if the price is 0 …

    #55007
    Anonymous
    Inactive

    Good point. Might be nice to be able to offer custom text though, e.g. to highlight the fact that they are paying nothing.

    #55008
    Franky
    Keymaster

    The 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/1267438

    #55013
    Anonymous
    Inactive

    Yes, 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!

    #55027
    Anonymous
    Inactive

    Is 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?

    #55028
    Franky
    Keymaster

    Use 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 🙂

    #55029
    Anonymous
    Inactive

    That’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?)?

    #55030
    Anonymous
    Inactive

    I’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!

    #55046
    Franky
    Keymaster

    Sorry, 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.

    #55048
    Anonymous
    Inactive

    Thanks 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?

    #55050
    Franky
    Keymaster

    Blanks 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 🙂

    #55052
    Anonymous
    Inactive

    Awesome, this seems to work perfectly! Thanks for your responsiveness and support. Donation heading your way.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top