Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Displaying Early Bird Pricing Details on Custom Post Type Template | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Displaying Early Bird Pricing Details on Custom Post Type Template

Displaying Early Bird Pricing Details on Custom Post Type Template

Posted: January 9, 2014 at 4:29 am

Viewing 1 reply thread


Zoe Newman

January 9, 2014 at 4:29 am

I am using the custom post type template single-espresso_event.php and in it displaying the price

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

which is fine it displays the price, and if it is within the ealry bird pricing dates, it displays the early bird price. However it doesn’t state that it is the early bird price and that the price will go up after the set date. What I would really like is to be able to display:
Full Price: £100
Early Bird Price: £95. When booked before <early bird end date>.
I’ve tried and failed to do this. How can I amend the custom post type template to achieve this please? Thanks.

wp: 3.7.1
EE: 3.1.36.1.P


Josh

January 9, 2014 at 11:32 am

Hi Zoe,

It turns out there is more than one way to go about this. One way is to edit the single event template and change the shortcode that displays the registration from to:

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

so it’s PAGE instead of FORM. You’ll need to remove the start date the event’s description since using ESPRESSO_REG_PAGE outputs these too.

Alternatively you could add this where you want the price to be displayed:

<p class="price">
<?php do_action( 'espresso_price_select', $event_id, array('show_label'=>FALSE, 'label'=>'') ); ?>
</p>
Viewing 1 reply thread

The support post ‘Displaying Early Bird Pricing Details on Custom Post Type Template’ 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 - Staging Server