Your cart is empty!
Display Summary
public function onDisplayOrderSummary( object $order ) : string
Fires after displaying the summary of a take-away order.
Description
Trigger hook to let the plugins add custom HTML contents below the order summary.
The returned HTML will be always displayed after the default contents of the page.
Parameters
- $order
-
(VREOrderTakeaway) The instance holding the take-away order details.
Return Value
String. The HTML to include.
Example
/**
* Trigger event to let the plugins add custom HTML contents below the take-away summary.
*
* @param object $order The object holding the order details.
*
* @return string The HTML string to include within the document.
*/
public function onDisplayOrderSummary($order)
{
// append custom HTML
return '<code>HTML CODE WILL BE ADDED HERE</code>';
}
Changelog
Version | Description |
---|---|
1.9 | Introduced. |
Last Update: 2023-12-29 14:15
Helpful?