Esempio n. 1
0
 public function displayOrder3(GWF_Module $module, GWF_Order $order, GDO $gdo, GWF_User $user, $sitename, $buttons)
 {
     if (false === ($paysite = GWF_PaymentModule::getPaymentModule($sitename))) {
         return $this->error('err_paysite');
     }
     $paysite->onLoadLanguage();
     $this->onLoadLanguage();
     $fee = $order->getOrderFee();
     $fee_perc = $order->getOrderFeePercent();
     $tVars = array('order' => $gdo->displayOrder($module), 'price' => self::displayPrice($order->getOrderPrice()), 'fee' => self::displayPrice($fee), 'has_fee' => $fee > 0, 'fee_percent' => sprintf('%.02f%%', $fee_perc), 'price_total' => self::displayPrice($order->getOrderPriceTotal()), 'no_info' => true, 'buttons' => $buttons, 'paymodule_info' => $paysite->lang('paymodule_info3'));
     return $this->templatePHP('order.php', $tVars);
 }