public function applyToOrder(CustomerOrder $order) { $currencyID = $this->getFieldValue('currency', ''); if ($currencyID) { $currency = Currency::getInstanceById($currencyID); $order->changeCurrency($currency); ActiveRecordModel::getApplication()->getRequest()->set('currency', $currencyID); } }