Your cart is empty!
Translate Order Details
public function onTranslatePackagesOrderDetails(mixed $order, string $langtag) : void
Fires while translating the object holding the packages order details.
Description
External plugins can use this event to apply the translations to additional details manually included within the order object.
Parameters
- $order
-
(mixed) The order details object.
- $langtag
-
(string) The requested language tag.
Return Value
None.
Example
/**
* External plugins can use this event to apply the translations to
* additional details manually included within the order object.
*
* @param mixed $order The order details object.
* @param string $langtag The requested language tag.
*
* @return void
*/
public function onTranslatePackagesOrderDetails($order, $langtag)
{
/**
* @todo it is possible to translate here the order object
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 14:23
Helpful?