public function onDisplayPackagesOrderSummary(object $order) : string

Fires after displaying all the purchased packages.


Description

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

The following image indicates where the resulting HTML will be appended.


Parameters

$order

(VAPOrderPackage)  The instance holding the order details.

Return Value

String. The HTML to include.


Example

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

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-11 10:05
Helpful?