Posted: September 24, 2015 at 3:19 am
|
Hello, i’m looking for hooks to customize single event page, i would like to add some additional info after the ticket selector, and the end of the page, under the venue details, but i haven’t find in the forum, is there a list of them? Simone |
September 24, 2015 at 11:50 am Hi Simone, You may find this helpful to see the templates that are used: https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5 You could then take a look at the specific template files to locate the available locations for adding some additional messaging. Here is an example of how to add a message before or after the event details: https://gist.github.com/lorenzocaum/2b2d419d092bf13d9116 — |
|
|
Thank you Lorenzo, i have read your tuturial and i find what i need. The last one i can’t reach is how updated the column quantity for every ticket in ticket selector. But i’m going to see directly in teh EE4 core. Thanks! |
Hi Simone, the quantity that is shown is updated based on the ticket quantity that is set through the ticket editor in the event editor within your WP dashboard. Could you share some feedback on what you are trying to change? Thanks — |
|
|
Hi Lorenzo, i have done some changes with hooks in single-page event using: Our customer ask us to disable certains tickes (but they must be shown in any case) for special reasons that i can’t control from inside the plugin, and i have thought to do that simply replacing the select amount with a custom sentence, but I could not find a proper hook to do that. Hope this is clear, thanks in advance for help, |
Hi Simone, I have an idea on handling that. If you want the ticket to be visible but not available for purchase, then you could expire it by adjusting the end date to right now and then saving changes through the event editor. If you change your mind in the future, then you can just adjust the end date. — |
|
|
Thanks Lorenzo, Your idea is good, but I need to replace the “goes on sale” with another sentence. I think the better thing is to make a mine ticket selector template and place it in the theme folder. Thanks for help, |
September 25, 2015 at 10:55 am Hi Simone, We have a filter that can be used to change the location of the ticket selector. Here is an example: //* Set Event Espresso to look for the ticket selector template in the espresso templates folder within the uploads folder for WordPress add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'ee_custom_ticket_selector_template_location'); function ee_custom_ticket_selector_template_location(){ return WP_CONTENT_DIR . '/uploads/espresso/templates/ticket_selector_chart.template.php'; } Thanks! — |
|
|
Thanks Lorenzo, thanks in advance, |
Hi Simone, No payments are processed through the WP dashboard. For example, if you remove a payment or adjust the payment amount, then that amount is not changed in the merchant account. — |
|
|
Dear Lorenzo, Thank a lot fot your help! Everything works great! Simone |
Thanks for letting us know Simone. I’ll go ahead and update your support post to resolved. If you need help with anything else, then feel free to create a new support post in our support forums: https://eventespresso.com/support/forums/ — |
|
The support post ‘Hooks for customize single event page’ 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.