Support

Home Forums Event Espresso Premium Hooks for customize single event page

Hooks for customize single event page

Posted: September 24, 2015 at 3:19 am


simone

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?
thank you

Simone


Lorenzo Orlando Caum

  • Support Staff

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


Lorenzo


simone

September 25, 2015 at 7:08 am

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!
Simone


Lorenzo Orlando Caum

  • Support Staff

September 25, 2015 at 7:39 am

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


Lorenzo


simone

September 25, 2015 at 8:04 am

Hi Lorenzo,

i have done some changes with hooks in single-page event using:
– AHEE_event_details_after_venue_details
– AHEE_event_details_after_the_content
– FHEE__ticket_selector_chart_template__per_ticket_text

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,
Simone


Lorenzo Orlando Caum

  • Support Staff

September 25, 2015 at 8:29 am

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.


Lorenzo


simone

September 25, 2015 at 9:01 am

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,
Simone


Lorenzo Orlando Caum

  • Support Staff

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!


Lorenzo


simone

September 28, 2015 at 2:46 am

Thanks Lorenzo,
in fact I used the solution you suggested to have a mine template.
I have a litte question more:
in the transaction with paypal in the admin/EE4/transactions i have, for a transaction, the status= complete but “apply payment” button is still visibile. Does it mean the without click the button no money are transferred?

thanks in advance,
Simone


Lorenzo Orlando Caum

  • Support Staff

September 28, 2015 at 9:27 am

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.


Lorenzo


simone

October 1, 2015 at 9:51 am

Dear Lorenzo,

Thank a lot fot your help! Everything works great!

Simone


Lorenzo Orlando Caum

  • Support Staff

October 1, 2015 at 11:07 am

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:

http://eventespresso.com/support/forums/


Lorenzo

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Lorenzo Orlando Caum 4 years, 2 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!