Support

Home Forums Event Espresso Premium "View Your Payment Details" link from confirmation email going to wrong page

"View Your Payment Details" link from confirmation email going to wrong page

Posted: June 28, 2013 at 3:26 pm


Cynthia Brown

June 28, 2013 at 3:26 pm

The link to the View Your Payment Details in the registration confirmation email is going to the wrong page. It is sending me to my Blog page.

I believe it may have something to do with my WordPress url which is: http://www.quincycitycrossfit.com/blog. My site url is: http://www.quincycitycrossfit.com

Here is the actual link from the email: http://www.quincycitycrossfit.com/blog/?page_id=485&r_id=6-51cdf4d653953

Appreciate you help!
Thank you.


Garth

  • Support Staff

June 29, 2013 at 11:40 pm

Hi Cynthia,

How are you today?

I’m pretty sure that link should direct to the thank you page. What page do you have the [ESPRESSO_PAYMENTS] shortcode? Is that page private or password protected (which it shouldn’t be)? It works on my testing installation so lets figure out what’s different about your setup.


Cynthia Brown

June 30, 2013 at 4:48 am

oh, ok – when I removed “/blog” from that link, it did take me to the Thank You page. That page is not private or password protected. the only thing I can think of is what I mentioned earlier: I believe it is pointing to my WordPress URL, rather than my site URL?? thanks for your help!


Dean

June 30, 2013 at 11:52 pm

Hi Cynthia,

We have noticed recently that some users with different site and wordpress urls were experiencing issues similar to this. There is a fix in place that will be released with the next version.


Cynthia Brown

July 1, 2013 at 5:25 am

so, is there nothing I can do now that will send folks to the right page??


Dean

July 1, 2013 at 6:36 am

Hi,

If you are happy amending code then you can apply the fix. It is a single line of code replacement.

In event-espresso/includes/functions/email.php on approx line 285 is this line

$payment_url = get_option('siteurl') . "/?page_id=" . $org_options['return_url'] . "&r_id=" . $data->attendee->registration_id;

Completely replace that line with the following

$payment_url = home_url() . "/?page_id=" . $org_options['return_url'] . "&r_id=" . $data->attendee->registration_id;

That will use the home url (where wordpress is installed) as a base for the link url.


Cynthia Brown

July 1, 2013 at 11:38 am

that worked perfectly, thank you!!

The support post ‘"View Your Payment Details" link from confirmation email going to wrong page’ 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