I want to edit the quantity field of the [ESPRESSO_TICKET_SELECTOR] shortcode. In particular, I want to change the dropdown into a number input field, so I can style it with + and – buttons either side of it and have users be able to select the quantity of the ticket by either entering a number in the field, or clicking the +/- buttons.
There isn’t easily done but is possible with some significant custom PHP, HTML, and CSS development.
The contents of the rows in the ticket selector can be customized using a WordPress filter hook: FHEE__ticket_selector_chart_template__do_ticket_entire_row
The filter hooks allows a developer to potentially build out a callback function on that filter and output customized html (including some new number & + – inputs in place of the standard dropdown select input).
Ok thanks Josh. That’s more work than I’m willing to do for that small adjustment but appreciate the info anyway. You may want to consider updating the appearance of the ticket selector, especially the quantity selection, in the future as I think it’s somewhat outdated.
The appearance of the ticket selector is mostly controlled by the active WordPress theme. So if the ticket selector is looking outdated, that’s mostly because the theme isn’t applying styles to html tables, or the styles it does apply look outdated.
We’re just using a shortcode with the Astra theme so what’s being applied from the theme looks good. It’s really just the drop down style of the ticket quantity I’m referring to I guess because you can’t change that.
The ticket quantity <select> input can be styled with CSS. For example, you could add the CSS from this gist into your site’s Additional CSS page/custom stylesheet:
The support post ‘Edit template (specifically the quantity dropdown) of [ESPRESSO_TICKET_SELECTOR]’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.