private function _SendInvoice() { // restore cart data from session Config::GetInstance()->InitSession(); $payment = new CheckoutController(); MessagePostMerger::GetInstance()->cart = $payment->getCartInstance(); // merge message with cart data and send it $emailer = new DataSaveMailer('email_settings'); $emailer->Save(); FormPage::GetInstance()->SetErrors($emailer->errors); // flags that determine further processing $this->invoiceSent = true; $this->checkedout = true; }
function PrepareConfirmPage() { $this->source = Config::GetInstance()->GetConfig('settings', 'redirect_settings', 'confirmpage'); if (empty($this->source)) { $this->source = false; return; } else { if (empty($this->post)) { return; } } if (Config::GetInstance()->UsePayments()) { // restore cart data from session Config::GetInstance()->InitSession(); $payment = new CheckoutController(); MessagePostMerger::GetInstance()->cart = $payment->getCartInstance(); MessagePostMerger::GetInstance()->setDecimals(Config::GetInstance()->GetConfig('settings', 'payment_settings', 'decimals')); } $this->source = MessagePostMerger::GetInstance()->SubstituteFieldNames($this->source); }