Support

Home Forums Event Espresso Premium maximum attendees disclaimer

maximum attendees disclaimer

Posted: January 26, 2016 at 10:13 am


Michael

January 26, 2016 at 10:13 am

Hi,

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 } ?>

thanks


Lorenzo Orlando Caum

  • Support Staff

January 26, 2016 at 12:25 pm

Hello,

There is a filter available for that:

FHEE__ticket_selector_chart_template__maximum_tickets_purchased_footnote

By default, it no longer appears.

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

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.

Event Espresso