Support

Home Forums Event Espresso Premium Modifying ESPRESSO_TICKET_SELECTOR layout HTML

Modifying ESPRESSO_TICKET_SELECTOR layout HTML

Posted: April 25, 2022 at 8:40 am


Ricardo Griffin

April 25, 2022 at 8:40 am

Hello there! I am looking for a way to customise the layout of the ESPRESSO_TICKET_SELECTOR shortcode. Please could someone let me know where IK can find the file. I looked through the plugin files but didn’t see anything that had the HTML.

Many Thanks


Joao Victor

  • Support Staff

April 25, 2022 at 2:10 pm

Hi Ricardo!

Thanks for reaching out.

We recommend customizations through CSS depending on what you want to customize, I am more than helpful to assist you with that. EventEspresso shortcode logic might be complicated if you’re not a developer, but you can find the Ticket Selector shortcode HTML markup and WordPress filters that can be used to customize it on eventespresso/modules/ticket_selector/standard_ticket_selector.template.php

Let us know if you have any further questions!


Ricardo Griffin

April 26, 2022 at 5:28 am

Thank you for the information! One other question regarding the “Add to Event Cart” button.

Ideally I would be able to move this button to within the table but I could not see where this button is rendered.


Tony

  • Support Staff

April 26, 2022 at 9:29 am

Hi there,

You can’t currently move the button without modifying core files within the plugin, which is something we can not support and do not recommend doing.

There is a filter which can be used to change the HTML generated for that button if that helps?

FHEE__EventEspresso_modules_ticket_selector_DisplayTicketSelector__displaySubmitButton__html


Ricardo Griffin

April 27, 2022 at 2:49 pm

Thank you, however I think it will not get the layout quite how I need it. I think the table view template is much closer to it but it would be good to change the register link.

Essentially I am looking for a table layout, but the “Register” link is the “Add to Event Cart” button with the pop-up/modal rather than currently linking to another page. This way a user can look through the list and click the “Add to Event Cart” button for each event they want to attend, using the Multi Event Registration add-on. Each event has a ticket limit of 1 so the qty drop down that is on ESPRESSO_TICKET_SELECTOR is not required in the table.

I hope this explains the requirement ok and really I just need to code the section of templates/espresso-events-table-template.template.php that creates the register link to include the button and ajax.

Thank you.


Tony

  • Support Staff

April 28, 2022 at 3:30 am

Ok, so basically, to include the add to cart link within the table you need the ticket selector to be included.

I know you’ve mentioned you don’t actually need the ticket selector itself and just the button but the logic currently isn’t separated enough to be able to do that.

So what your looking to do, is possible, but will you’ll likely need to hide a lot of additional ‘unneeded’ sections for your use case.

The support post ‘Modifying ESPRESSO_TICKET_SELECTOR layout HTML’ 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