Support

Home Forums Events Calendar Add-on Show prices in calendar tool tip?

Show prices in calendar tool tip?

Posted: December 3, 2014 at 8:24 am

Viewing 6 reply threads


Louise Kimerling

December 3, 2014 at 8:24 am

Is there a way to show the event price in the calendar tooltip. Currently have the multi registration addon in place. Does that cause any problems at all?

Thanks in advance for any help.


Sidney Harrell

December 3, 2014 at 1:47 pm

It’s sort of hard coded into the file plugins/espresso-calendar/espresso-calendar.php around line 700. It wouldn’t be hard to put the price in there once you have it, but it might be easier to put the string you want displayed into an event meta field. If you try to get the actual prices, and there are multiple prices, the code can quickly get complicated dealing with all the possible senarios. But the event meta fields are already loaded into a variable at that point in the code, so it’s a one line, quick fix, with almost no chance of breakage.


Louise Kimerling

December 3, 2014 at 7:09 pm

Hey.

I was looking in the right ballpark at least. Will have a play tomorrow and see if I can figure it out. Thanks again for the help.


Louise Kimerling

December 4, 2014 at 6:49 am

So I added an event meta field with a key of event_price and added the line

echo do_shortcode(‘[EE_META type=”event_meta” name=”event_price”]’);

after the description section of the tooltip. Am I getting this completely wrong or am I just making a stupid mistake.

Thanks again for the help.


Josh

  • Support Staff

December 4, 2014 at 3:48 pm

Hi Louise,

You’re on the right track, but there’s a few little things you’ll need to add. Here’s some example code you can use:

$tooltipPrice = ee_show_meta($event_meta, 'event_price');
$events[ $cntr ]['tooltip'] .= '

Price: ' . $tooltipPrice . '

';


Louise Kimerling

December 5, 2014 at 4:48 am

So close.

Yet so far. Got it working now.

Thanks for the help


Josh

  • Support Staff

December 5, 2014 at 6:42 am

You’re welcome

Viewing 6 reply threads

The support post ‘Show prices in calendar tool tip?’ 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