Function __global->build_order_details

Definitions

sources/ecommerce_reports.php

  • The UI to view an order.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$title Tempcode No No required parameter N/A N/A The screen title
$id AUTO_LINK No No required parameter N/A N/A The order ID
$text Tempcode No No required parameter N/A N/A Text to include on the order, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
$show_order_actions boolean No No False N/A N/A Whether to show order actions

Returns

  • The order details
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * The UI to view an order.
 *
 * @param  Tempcode $title The screen title
 * @param  AUTO_LINK $id The order ID
 * @param  Tempcode $text Text to include on the order, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
 * @param  boolean $show_order_actions Whether to show order actions
 * @return Tempcode The order details
 */

function build_order_details(object $title, int $id, object $text, bool $show_order_actions = false) : object