# Examples - [Classes](#classes) - [Example](#example) - [Filters](#filters) - [Set order custom field on status change](#set-order-custom-field-on-status-change) - [Prices with discounts to icml](#prices-with-discounts-to-icml) ## Classes ### Example ```php ``` ## Filters ### Set order custom field on status change ```php getShipping() as $shipping) { $trackingNumbers[] = $shipping['tracking_number']; } $object['customFields']['tracking'] = implode(', ', $trackingNumbers); // get data from the database $sql = 'SELECT important_data FROM ' . _DB_PREFIX_ . 'important_table WHERE id_order = ' . pSQL($order->id); $data = []; foreach (Db::getInstance()->ExecuteS($sql) as $row) { $data[] = $row['important_data']; } $object['customFields']['important_data'] = implode(', ', $data); return $object; } } ``` ### Prices with discounts to ICML ```php