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.
Support forum for Event Espresso 3 and Event Espresso 4.