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 Early discounts are not shown on Main registration page | Event Espresso - Staging Server
Hi, Early discounts are not shown on Main registration page with [ESPRESSO_EVENTS] shortcode. There are showed as regular prices. Then after one click on one of events it is showed with Early discount applied. I cant find any option to show Early discount on Main registration page. Please help ASAP!
There is no system in place to do that, you would need to add code to show the early bird prices on the list pages.
Here is some code to get you started, but it is by no means complete and doesnt cover checks so use it as is at your own risk.
You can find out more by having a look at the pricing code event-espresso/includes/functions/pricing.php
<?php
// add Early Bird Discount to the listing page
//quite rough, hasnt got any validation checks.
$early_discount = $event->early_disc; //number
$early_discount_per = $early_discount / 100;
$early_perc = $event->early_disc_percentage; //Y or N
$early_full_cost = $event->event_cost;
if ($early_perc == 'Y') {$show_early = $early_full_cost - ($early_full_cost * $early_discount_per);}
else
{$show_early = $early_full_cost - $early_discount;}
echo '<p id="p_event_price-1" class="event_price"><span class="section-title">Early Bird Discount Price: </span>' . $org_options['currency_symbol'].number_format($show_early, 2, '.', '') . '</p>';
?>
Viewing 1 reply thread
The support post ‘Early discounts are not shown on Main registration 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.