Support

Home Forums Event Espresso Premium Simple Price Shortcode for the actual event

Simple Price Shortcode for the actual event

Posted: August 26, 2012 at 3:32 am

Viewing 2 reply threads


Chris

August 26, 2012 at 3:32 am

Hi,

I purpose to use an event I have created once as a draft for future events (by using the “duplicate event” function).

In the event description I want to display the price of the actual event. So i need a shortcode that simply shows the price of the actual event whenever I set up a new one. I understand that I can reach that goal by using
[EVENT_PRICE event_id=”X” number=”0″]
and always modifying the actual event no. when composing a new event.

But I actually want to avoid these manual step. The shortcode should just automatically show the price of the new event.

I tried [EVENT_PRICE] and [EVENT_PRICE number=”0″] in a new event but that does not work.

Any suggestion?


Josh

  • Support Staff

August 26, 2012 at 4:18 pm

You could modify the registration_page_display.php template to include this. Look for the code that displays the description and add something like this near it:

<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]');?>

See these references for more info: https://eventespresso.com/wiki/shortcodes-template-variables/#event-price https://eventespresso.com/wiki/put-custom-templates/


Chris

August 29, 2012 at 12:14 am

Yes, that works!

Thank you.

Viewing 2 reply threads

The support post ‘Simple Price Shortcode for the actual event’ 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