Support

Home Forums Event Espresso Premium I need a few developer hints

I need a few developer hints

Posted: February 9, 2021 at 1:17 am


tethac01

February 9, 2021 at 1:17 am

Hello, I am developing a website with EE4 and have a few (developer related) questions.

1. I see EE offers payment methods but I do not see integration for Stripe or Credit Card. Can you hint me towards the right approach to integrate Stripe or other Credit Card Payment methods?

2. Is there a inbuilt way of showing in the calendar that during a certain time period the business is closed? Similar to creating an event with no seats, so the calendar shows that during the selected time, the business is closed and does not take any bookings? Similar to “sold out”, however with a more appropriate message and visual feedback that says “business closed” or similar (this is obviously very useful right now during COVID times)

3. Add a picture/thumbnail to the events calendar, so when hovering the event, we see a picture (please see the attached screenshot for what I mean)
hover-image

Note, I am not expecting you to do this for me, of course. I am a experienced PHP WordPress developer and just need the hints as of what API hooks to use in order to manipulate the EE properly.

Can you let me know how it is suggested to approach this?

Thank you!


Tony

  • Support Staff

February 9, 2021 at 5:17 am

Hi there,

1. I see EE offers payment methods but I do not see integration for Stripe or Credit Card. Can you hint me towards the right approach to integrate Stripe or other Credit Card Payment methods?

We have a Stripe payment method for EE4 available here:

https://eventespresso.com/product/eea-stripe-gateway/

As for adding your own payment method, you’ll find some documentation on doing so here:

https://eventespresso.com/2015/03/developers-guide-to-payment-methods-for-event-espresso-4-6/

2. Is there a inbuilt way of showing in the calendar that during a certain time period the business is closed? Similar to creating an event with no seats, so the calendar shows that during the selected time, the business is closed and does not take any bookings? Similar to “sold out”, however with a more appropriate message and visual feedback that says “business closed” or similar (this is obviously very useful right now during COVID times)

Not currently no, one option would be to create an event with title ‘business closed’ and then use that to display on the calendar, although thats going to get a little difficult to manage the more sections you want to add.

3. Add a picture/thumbnail to the events calendar, so when hovering the event, we see a picture (please see the attached screenshot for what I mean)

We have an option to display the image on the calendar sections:

Event Espresso -> Calendar -> Basic settings.

Set ‘Enable Images in Calendar’ to yes and save.

In your image, that will display the feature image on the grey back background before the tooltip shown on hover.

Does that not work for you?


tethac01

February 10, 2021 at 1:59 am

Hi Tony, thanks for the feedback.

All clear about point 1 and 2

About point 3, if you compare my screenshot shared, and the result that we get when we use the setting you suggest (see https://thecrafterybar.tukutoi.com/reservations/, the only event in the calendar named “charged”) you can see that the screenshot I shared has the image IN the hover-pop up

However, the suggested setting in EE will produce the image in the calendar entry, not in the pop up.

Do I miss a setting? Or is there a PHP Filter that I can use, to customise the pop up and pass in custom content with PHP?
I am a PHP developer, so all I would need is the filter to use, I can then craft the custom code on my own.

Thank you for the feedback once again!


Tony

  • Support Staff

February 10, 2021 at 6:00 am

However, the suggested setting in EE will produce the image in the calendar entry, not in the pop up.

That’s expected, I mentioned that above:

In your image, that will display the feature image on the grey background before the tooltip shown on hover.

(Fixed my ‘background’ typo)

If that doesn’t work for you then yes, there’s a filter:

apply_filters('FHEE__EE_Calendar__get_calendar_events__calendar_datetime', $calendar_datetime, $datetime);

Take a look in EED_Espresso_Calendar.module.php around the tooltip setup starts account line 798 and you’ll basically need to recreate your own tooltip based on that code but including your own output.


tethac01

February 12, 2021 at 12:50 am

Great, thank you very much!

The support post ‘I need a few developer hints’ 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