Prior to 4.8, the ticket_selector_chart.template file had the following
<?php if ( $max_atndz > 0 ) { ?>
<p class="smaller-text lt-grey-text">* <?php echo sprintf( __( 'Please note that a maximum number of %d tickets can be purchased for this event per order.', 'event_espresso' ), $max_atndz );?>
I think that’s been replaced with the Event Details module, which is now controlled by Admin-Events-Templates.
I have reinserted my snippet into the new ticket_selector_chart.template file, and it still works, but my question is whether I can expect this to continue to work, or will it eventually break?
I insert this on line 489:
<?php if ( $max_atndz > 0 ) { ?>
<p class="smaller-text lt-grey-text">* <?php echo sprintf( __( 'Please note that a maximum number of %d tickets can be purchased for this event per order.', 'event_espresso' ), $max_atndz );?> <?php echo sprintf( __( 'When less than %d tickets remain, Qty dropdown reflects total remaining inventory.', 'event_espresso' ), $max_atndz );?></p>
<p>All sales are final.</p><p class="smaller-text lt-grey-text"> Tickets are not returnable or exchangeable. Credits or refunds are only issued if a performance has been cancelled by the arts partner.</p>
<?php } ?>
You might consider using a filter to set Event Espresso to check for your custom ticket selector:
//* Set Event Espresso to look for the ticket selector template in the espresso templates folder within the uploads folder for WordPress
add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'ee_custom_ticket_selector_template_location');
function ee_custom_ticket_selector_template_location(){
return WP_CONTENT_DIR . '/uploads/espresso/templates/ticket_selector_chart.template.php';
}
This is because any edits to the core plugin will be lost on a software update.
—
Lorenzo
Viewing 1 reply thread
The support post ‘maximum attendees disclaimer’ 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.