Posted: November 20, 2022 at 12:52 pm
|
Hello We have the latest EE4 (recently migrated from EE3). We use a plugin called TablePress to create tables for event pages. When we put the ticket selector shortcode in a table, it behaves differently to when the shortcode is just put on wordpress page. So when the ticket selector shortcode is not in a table, when you click Add to Event cart, you get the pop-up that says Add More Events, Proceed to Registration, etc (this is what we prefer happens). However, when the shortcode is in a table, it does not go to the pop up, it goes to the event page for the event – I will provide screenshots below. Oddly enough, if you have the ticket selector shortcode in the table, but then also put the ticket selector shortcode on the same page (but not in a table), the ticket selector in the table work normally – ie goes to the pop up. Hoping you let us know what may be goung here and we can end up using the shortcode in the table. Regards Joe |
|
This reply has been marked as private. |
Hi J, When you use the ticket selector shortcode on a page, EE ‘detects’ the usage of the shortcode and will add the assets required for the Multi Event Registration Add-on (MER for short) to function how it ‘normally’ does. The reason we do this is so that Event Espresso does not just load all of its assets everywhere on your site, we only load what we need, when it’s needed. With TablePress, you add the shortcode outside of the page and then call TablePress to render the table and any shortcodes within it. That means EE can’t detect the shortcode usage within the page (because it’s not actually ‘in’ the page itself, its within another shortcode calling it from elsewhere). I tried to look at the page in question to confirm if this was happening but it seems like its no longer using the above. Can you create a test page and add the TablePress table to it, then another test page with just the ticket selector shortcode on it, please? |
|
|
This reply has been marked as private. |
Hi Joe, So yeah, the above is exactly what is happening, the shortcode being parsed within the page is the TablePress shortcode and then within the content of that shortcode the ticket selector shortcode is parsed. EE can’t ‘detect’ that usage in the way way it does elsewhere to make sure all of EE’s assets are loaded. I’ve added a snippet to your custom functions plugin to force the Multi Event Registration assets to load on your pages for now, that should fix allow the shortcode to work for now. I’ve requested some additional feedback on this from our developers to see what we can do. |
|
|
This reply has been marked as private. |
Something like this should do it:
|
|
|
That’s great, worked well, many thanks. Regards Joe |
The support post ‘Ticket Selector Not Working In Table’ 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.