public function onDisplayOrderSummaryHead(object $order) : string

Fires before displaying the details of the booked appointments.


Description

Trigger hook to let the plugins add custom HTML contents before the order summary. The returned HTML will be always included outside the form of the page.

The HTML returned by this hook is the very first thing you'll see on the page.


Parameters

$order

(VAPOrderAppointment)  The instance holding the order details.

Return Value

String. The HTML to include.


Example

/**
 * Trigger event to let the plugins add custom HTML contents before the order summary.
 *
 * @param   object  $order  The object holding the appointments details.
 *
 * @return  string  The HTML string to include within the document.
 */
public function onDisplayOrderSummaryHead($order)
{
    // append custom HTML
    return '<code>HTML CODE WILL BE ADDED HERE</code>';
}

Changelog

Version Description
1.7.9 Introduced.
Last Update: 5 hours ago.
Helpful?