Support

Home Forums Event Espresso Premium Check-In in HTML Receipt (Use of the receipt as a certificate after the event) Reply To: Check-In in HTML Receipt (Use of the receipt as a certificate after the event)

Reply To: Check-In in HTML Receipt (Use of the receipt as a certificate after the event)

Author Replies
motio # Posted on May 7, 2018 at 4:56 am

Thank you Tony, step by step I get to understand everything.

In case somebody has a similar task, here is a part of the code:

$get_event = EEH_Event_View::get_event();
$get_tickets = $get_event instanceof EE_Event ? $get_event->tickets() :  '';

// Filter tickets for a Ticket name
$ticket_kursteilnahme = array_filter(
    $get_tickets, function ($e) { return $e->get_raw('TKT_name')  == "Kursteilnahme";
    }
);

// Get array of all formatted ticket prices
$min_price = array_map(function($o) { return $o->pretty_price(); }, $get_tickets);
Do NOT follow this link or you will be banned from the site!