Posted: February 16, 2018 at 3:25 pm
|
When a cart times out the site returns the user to the Events List I would prefer they return to http://184.154.244.76/~tocift07/register/ How can I change this? Thanks, Laura |
Hi Laura, Do you not want to use the default event list link at all? If so you can use a function like this: https://gist.github.com/Pebblo/16bf7bc52af949fd60e0ee1e6db801a9 Add that to your custom functions plugin you previously created and be sure to change line 7 to the URL you cant to use. |
|
|
I’m having trouble regenerating the error that took me to that page, so I don’t know the url that I can’t use. How can I get there? It’s obviously an EE4 generated page because it’s not in the “Pages” area. I looked at the php I’m to alter and it seems like I would put the page I want the system to go too insead of changing line 7 to the URL I “can’t” use. I just want to be sure. I’m doing this right. Also, do I replace the words “site url” and leave the open and closed paren after it? Thanks for the help! Laura |
On depends on the specific error you saw, do you know the exact wording? Or a screenshot? It sounds like it was the expired session notice, which is thrown if you add tickets to the cart and then try to process after the session has expired (by default its 1 hour) but it could be something else.
Yes, you could use:
You may actually want to switch out So you could use:
|
|
|
Here is the pastebin url. Please check and make sure it looks right. Thank you so much for your help! |
|
It is the last filter. |
Yes, that filter looks correct, it will tell EE (and WordPress) to change the default event list to direct your to |
|
|
This php is working but I would like to change some text in the error message. Here is the screenshot of the message. efa14dfe15091bdbb1af154a1147eb8f I would like for the link to say REGISTRATION PAGE in all caps and strong. Appreciate the help! Laura |
|
Sorry. Link text wasn’t complete… |
Hi Laura, Can you report that link please, the above isn’t working. |
|
|
I just tried the link and it’s working fine now. Can you try again? Thanks! Laura |
Works now 🙂 Are you still using a custom function to translate text on your site? If so you can add this:
To your strings array. |
|
The support post ‘Make all errors that return to Event List page return to Registration 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.