Posted: April 30, 2018 at 11:19 pm
|
The “Return to programs” (the left button) on: 1) the cart page (registration-checkout), and; 2) the pop-up box created after you add an item to the cart “return to programs go to a page that doesn’t exist – yoursite.com/calendar — How do I get it to go to a specific page? Ideally I would like it to go back to the previous page they were on. Is that possible? It would be different for each different visitor who is adding different programs to their own cart. Please let me know how to fix this. Thanks! |
|
Also, in the scenario of “nothing in your event queue” – how do you change the text on that page? I want it to say program not event. The “select at least one event” also needs to go to a different specific URL, not the page to which it is going currently. Please let me know how to make these changes. Thanks. |
Hi there,
It looks like someone has tried to do exactly that and used this function incorrectly: https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40 Those links use WP core functions to generate the URL used for the button which will never return ‘yoursite.com/calendar`, however, the URL is filterable so a function like the above can set it to whatever you want it to be. Can you check your themes
There’s no method that is 100% for this as it depends on the server setup (which is one of the reasons EE does what it does), but you can try using a function like this: https://gist.github.com/Pebblo/844777c4c5be9f647b752f8a9bda50d0 As mentioned, that may or may not work depending on your server setup and bear in mind, if a user adds the event to the cart from an event itself, they will be directed back to that event using this function.
That text is filtered so you can use something like this: https://gist.github.com/Pebblo/43556e9fc43df5696fb8eea15b356b9b You can change the text used on line 6, and the link used on line 10. Add both of the above functions to a custom functions plugin on your site. |
|
The support post ‘How/Where do I change the link on buttons on cart page, and in popup?’ 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.