Posted: November 2, 2017 at 10:45 pm
|
I have edited my return to event list button (changed the text and the url). Below is the code I used.
The button doesn’t work when I add something to my cart, but if I view my cart and click on the button there, it works. Did I do something wrong? |
Hi there, It seems to be working when I test adding an event to the cart on your site, can you link me to where it doesn’t work for you and provide the steps needed to reproduce, please? |
|
|
It’s weird it works some places. I just tried it on Vertimax and it worked but then I did Holiday Handles and it didn’t. Can you try clicking the “Register Now” button on the home page for Holiday Handles (It’s in the Programs section). Once there, add a ticket to your cart and on the modal that pops up, click it. This is what the element looked like in the inspector (wrong href)
|
That URL looks wrong, not just for the function you posted, but for the default output. Double check you don’t have any other custom functions hooking into |
|
|
This is my whole custom plugins file
|
Have you checked other locations on your site? functions.php from within you theme for example? |
|
|
I don’t have my site downloaded locally so I can’t check through an IDE, but the only place that would be edited to my knowledge is in the file I posted already unless one of the add ons for EE edits it. I have the Calendar, Multi-Event registration, and Attendee mover. Would any of those affect it? Also this is my functions.php
|
No, none of those change that field, unless someone has changed something within the add-ons. Change the priority on the hooks your using to 999, for example:
becomes this:
Same result? |
|
|
Yea same result when I added that. |
This looks like an edge-case bug with post_type_archive_link. You’ll notice the post slug and taxonomy term slug match between the event and event category: http://www.nrbasketballacademy.com/events/holiday-handles/ Even if you do not have that filter in place, you’d still see an issue with that return to event list link with that event. You can avoid this by changing one of the above’s slug so the two aren’t exactly the same. |
|
|
oh interesting haha. Ok thanks I’ll change that when I get home tonight. I’ll post here again if that doesn’t work. |
The support post ‘The return to event list button doesn't work’ 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.