public static function get_order_link($orderID, $urlSegment = false)
    {
        $page = self::get_if_account_page_exists();
        return ($urlSegment ? $page->URLSegment . '/' : $page->Link()) . 'order/' . $orderID;
    }
public static function get_order_link($orderID, $urlSegment = false)
    {
        $page = self::get_if_account_page_exists();
        return ($urlSegment ? $page->URLSegment . '/' : $page->Link()) . 'order/' . $orderID;
    }
public static function get_order_link ( $ orderID , $ urlSegment = false ) { $ page = self :: get_if_account_page_exists ( ) ; return ( $ urlSegment ? $ page -> URLSegment . '/' : $ page -> Link ( ) ) . 'order/' . $ orderID ; }
Return a link to view the order on the account page.

@param int|string $orderID    ID of the order
@param boolean    $urlSegment Return the URLSegment only

@return string
Return a link to view the order on the account page .