Support

Home Forums Event Espresso Premium Thank you page – Stripe

Thank you page – Stripe

Posted: March 9, 2014 at 8:23 am

Viewing 17 reply threads


Ben

March 9, 2014 at 8:23 am

Wordpress 3.8.1
EE3 all add-ons
Been installed for over a year.
https://boulderwalkingtours.com/event-registration/?ee=1212

Hey Guys,
Please can someone tell me where to edit the thank you page following a Stripe Payment? – http://screencast.com/t/w89tkjhf

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 2:16 pm

Hi Ben,

Please try something like this in your theme’s functions.php file:

function stripe_success_message($phrase)
{
        $phrase = str_replace('Transaction was completed successfully', 'This is my new transaction status message for Stripe', $phrase);
        return $phrase;
    }
add_filter('the_content', 'stripe_success_message', 105);


Lorenzo


Ben

March 9, 2014 at 3:51 pm

Hi Lorenzo,

Thanks for that, however, I’m now getting this error – http://screencast.com/t/QKBofGMfvc

I’ve undone everything and resaved and uploaded the files as they were, and I’m still getting the error. The error is when I click on an event in the calendar, instead of showing the registration page.

Please help.

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 4:35 pm

Hi Ben,

Its referring to WordPress HTTPS. Could you try turning that plugin off?

Does the error clear up?


Lorenzo


Ben

March 9, 2014 at 4:41 pm

Thanks Lorenzo,

That has removed that error. What do you suggest now to change the Stripe thank you page?
How do I make the Stripe payment pages ‘https’ now that the plugin is turned off?

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 4:50 pm

Headers already sent is usually from excess whitespace:

https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

Is there any extra space at the end of your theme’s functions.php file? If so, could you remove it and try reactivating WP HTTPS?


Lorenzo


Ben

March 9, 2014 at 5:00 pm

Deleted 2 blank lines, resaved and uploaded. Turned on https, and gave me this error instantly – http://screencast.com/t/vPSks5iLBX

Any ideas?

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 5:05 pm

Its a PHP warning but does it persist throughout the WordPress admin?

For example, what happens if you return to your WordPress dashboard after you see that message?


Lorenzo


Ben

March 9, 2014 at 5:10 pm

No it doesn’t persist throughout the admin, but the error now appears again from clicking on an event in the Calendar.

I could go ‘back’ to the dashboard after that error ok. So https is back on, but error still showing from Calendar.

I’m bit confused how this error can be appearing after changing the functions, and custom functions file, and both have been put back to their original state. At least that’s what I think so.

Let me know if you want login details.

Thanks.


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 5:29 pm

Hello,

Please share that temporary login through the secure link below:

https://eventespresso.com/send-login-details/


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

March 10, 2014 at 10:18 am

Thank you. I responded privately with what I’ve found. Lets continue working on this issue there until its resolved.


Lorenzo


Ben

March 10, 2014 at 11:22 am

Thanks Lorenzo,

So the calendar feature seems to be working now, and the error that was appearing seems to have disappeared. Thank you!

Going back to the original question of how to edit the ‘thank you’ page for Stripe, do I go back to the functions.php and edit the file?

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 10, 2014 at 11:28 am

Yes, you would need to add the code that I shared earlier back to your theme’s functions.php file.


Lorenzo


Ben

March 10, 2014 at 12:42 pm

Thanks Lorenzo!

All working now, thank you!

With Paypal Standard, can I do the same thing?

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 10, 2014 at 12:46 pm

I’m not sure if that is possible because I think the success message is the same.

The code snippet that I shared earlier (https://eventespresso.com/topic/thank-you-page-stripe/#post-85026) works by looking for a specific phrase and then replacing it with your new phrase.

If the original phrase for PayPal is different than “Transaction was completed successfully” — then you can setup a similar function.

Does that make sense?


Lorenzo


Ben

March 10, 2014 at 1:54 pm

Thanks Lorenzo,

That makes sense. It’s just that that when I have changed the thank you page before, I have used the ‘customfunctions.php’ page so its part of the plugin, instead of the theme.

Is either way ok?

Thanks
Ben


Lorenzo Orlando Caum

  • Support Staff

March 10, 2014 at 2:04 pm

You can switch it to that file.


Lorenzo


Ben

March 10, 2014 at 2:06 pm

Thanks Lorenzo!

Viewing 17 reply threads

The support post ‘Thank you page – Stripe’ 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