Support

Home Forums Event Espresso Premium Custom text under "Please Select Your Method of Payment "

Custom text under "Please Select Your Method of Payment "

Posted: April 30, 2015 at 8:46 am

Viewing 5 reply threads


Jonathan

April 30, 2015 at 8:46 am

How would I add this?

I would like to add an explanation of the process and the different payment gateways.

Thanks


Josh

  • Support Staff

May 1, 2015 at 12:56 pm

Hi Jonathan,

There’s an action hook that you can use to add payment information to that page. Please note the text will display above the billing details. I checked and there isn’t another hook until much further down the page. Here’s an example of how to use the hook:

add_action( 'AHEE__payment_options__reg_step_start', 'my_custom_payment_instructions' );

function my_custom_payment_instructions() {
    echo '<div><p>Payment instructions can go here</p></div>';
}
  • This reply was modified 9 years, 6 months ago by Josh. Reason: fixed code


Jonathan

May 1, 2015 at 2:01 pm

It didn’t like that. It gave me this error:

This registration step could not be completed. Please refresh the page and try again.

Then the following when I clicked again:

An error has occurred:
The selected method of payment could not be determined.
Please ensure that you have selected one before proceeding.
If you continue to experience difficulties, then refresh your browser and try again, or contact xx for assistance.
EE_SPCO_Reg_Step_Payment_Options – _get_selected_method_of_payment – 692

As it happens, I’ve just edited the post page and have added some text to the top there before the EE4 shortcode, and I’m happy with that.


Josh

  • Support Staff

May 1, 2015 at 3:06 pm

That’s my bad, that’s not the right hook. I’ve updated the code so it now uses the AHEE__payment_options__reg_step_start hook.


Jonathan

May 1, 2015 at 3:41 pm

Thanks for updating that. It’s not ideal because (a) it appears on the the attendee information page and (b) on the payment page it appears in a location you could miss easily. Could adding text as requested above be added as a feature request for future releases?


Dean

May 4, 2015 at 5:30 am

Hi,

I’ll certainly add that as a feature request!

Viewing 5 reply threads

The support post ‘Custom text under "Please Select Your Method of Payment "’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso