private function displayErrorPage() { $this->context->smarty->assign('version', $this->_whichVersion()); $showView = new BWDisplay(); $showView->setTemplate(_PS_MODULE_DIR_ . 'pagseguro/views/templates/front/error.tpl'); $showView->run(); }
$so->context->cart->id_carrier = (int) $trparamplus[0]; } if ((int) $so->context->cart->gift && Validate::isMessage($trparamplus[2])) { $so->context->cart->gift_message = strip_tags($trparamplus[2]); } if (!$so->context->cart->update()) { $errors_list[] = $so->l('Cart cannot be updated. Please try again your selection'); } else { Tools::redirect($redirect . 'step=3&cgv=1&id_carrier=' . $so->context->cart->id_carrier); } } else { $errors_list[] = $so->getError('999'); } } $so->context->smarty->assign('error_list', $errors_list); $display->run(); function saveOrderShippingDetails($id_cart, $id_customer, $so_params, $so_object) { // if api use is 3.0 we need to decode for accentued chars if (!isset($so_params['CHARSET'])) { foreach ($so_params as $key => $value) { $so_params[$key] = utf8_decode($value); } } $delivery_mode = array('DOM' => 'Livraison à domicile', 'BPR' => 'Livraison en Bureau de Poste', 'A2P' => 'Livraison Commerce de proximité', 'MRL' => 'Livraison Commerce de proximité', 'CMT' => 'Livraison commerçants Belgique', 'CIT' => 'Livraison en Cityssimo', 'ACP' => 'Agence ColiPoste', 'CDI' => 'Centre de distribution', 'BDP' => 'Bureau de poste Belge', 'RDV' => 'Livraison sur Rendez-vous'); // default country france if (isset($so_params['PRPAYS'])) { $country_code = $so_params['PRPAYS']; } elseif (isset($so_params['CEPAYS'])) { $country_code = $so_params['CEPAYS']; } else {
* DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../../../../init.php'; include_once dirname(__FILE__) . '/../../pagseguro.php'; include_once dirname(__FILE__) . '/../../backward_compatibility/backward.php'; include_once dirname(__FILE__) . '/../../features/payment/pagseguropaymentorderprestashop.php'; $useSSL = true; $showView = new BWDisplay(); $context = Context::getContext(); if (!$context->cookie->isLogged(true)) { Tools::redirect('authentication.php?back=order.php'); } $payment = new PagSeguroPaymentOrderPrestashop(); $payment->setVariablesPaymentExecutionView(); $environment = PagSeguroConfig::getEnvironment(); $context->smarty->assign('environment', $environment); $url = "modules/pagseguro/standard/front/error.php"; $context->smarty->assign('errurl', $url); $showView->setTemplate(_PS_MODULE_DIR_ . 'pagseguro/views/templates/front/payment_execution.tpl'); $showView->run();
function displayErroPage() { $showView = new BWDisplay(); $showView->setTemplate(_PS_MODULE_DIR_ . 'pagseguro/views/templates/front/error.tpl'); $showView->run(); }