Support

Home Forums Event Espresso Premium tw_output_details_before_the_ts dependant on ticket price

tw_output_details_before_the_ts dependant on ticket price

Posted: May 5, 2016 at 6:15 am


Auric

May 5, 2016 at 6:15 am

We currently use the following code to display text before the ticket selector. Is there any way to only show this text for zero value, and/or change the text dependant on whether the tickets are zero-value or not?

function tw_output_details_before_the_ts( $event ) {
$str = “<div class=’event-content refund-policy’><p>No refunds for cancellations or no shows within 48 hours of the event.</p></div>”;
$str = $str . “<div class=’event-content validation-warning’><p>Please note that if you select member tickets your membership will be validated internally.</p></div>”;
$str = $str . “<div class=’event-content call-order’><p>Don’t want to book online? Call us on 021 402 4300.</p></div>”;
echo $str;
}
add_action( ‘AHEE__ticket_selector_chart__template__before_ticket_selector’, ‘tw_output_details_before_the_ts’ );


Josh

  • Support Staff

May 5, 2016 at 8:29 am

Hi Auric,

Another approach is you can filter the html output for the ticket row by using the
FHEE__ticket_selector_chart_template__do_ticket_entire_row
filter hook and conditionally add different messages depending on information gleaned from the ticket object. This is because the ticket object is passed to that filter.

The support post ‘tw_output_details_before_the_ts dependant on ticket price’ 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