Your cart is empty!
Fetch Status
public function onFetchStatusSaveOrder(string &$status, string &$comment) : void
Fires after evaluating the default status code.
Description
Trigger hook to manipulate the order status at runtime.
Parameters
- &$status
-
(string) The status code to use.
- &$comment
-
(string) An optional status comment.
Return Value
None.
Example
/**
* Trigger hook to manipulate the order status at runtime.
*
* @param string &$status The currently fetched order status.
* @param string &$comment An optional status comment to be used.
*
* @return void
*/
public function onFetchStatusSaveOrder(&$status, &$comment)
{
// auto-confirm appointment
$status = 'C';
// define a custom comment
$comment = 'Appointment confirmed by a third-party plugin';
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 14:56
Helpful?