0039gin Posted November 10, 2010 Share Posted November 10, 2010 Quando mi inviano un ordine pagando in contrassegno, alla fine i clienti vengono indirizzati a history.php vorrei che finissero in order-confirmation.php come si può risolvere?? Link to comment Share on other sites More sharing options...
webtintin Posted November 29, 2010 Share Posted November 29, 2010 Ciao,la cartella con i file di pagamento in contrassegno e :modules/cashondeliverySulla root, all'interno del file order-confirmation.php ci sono dei link ad history.php,prova a cambiare i link nel punto in cui serve a te.Perche' il processo prima ti indirizza ad order-confirmation.php e poi ad history.php.order-confirmation.php____________________________<?php/* SSL Management */$useSSL = true;include(dirname(__FILE__).'/config/config.inc.php');include(dirname(__FILE__).'/header.php');$id_cart = intval(Tools::getValue('id_cart', 0));$id_module = intval(Tools::getValue('id_module', 0));$id_order = Order::getOrderByCartId(intval($id_cart));$secure_key = isset($_GET['key']) ? $_GET['key'] : false;if (!$id_order OR !$id_module OR !$secure_key OR empty($secure_key)) Tools::redirect('history.php'.(Tools::isSubmit('slowvalidation') ? '?slowvalidation' : ''));$order = new Order(intval($id_order));if (!Validate::isLoadedObject($order) OR $order->id_customer != $cookie->id_customer OR $secure_key != $order->secure_key) Tools::redirect('history.php');$module = Module::getInstanceById(intval($id_module));if ($order->payment != $module->displayName) Tools::redirect('history.php');$smarty->assign(array( 'HOOK_ORDER_CONFIRMATION' => Hook::orderConfirmation(intval($id_order)), 'HOOK_PAYMENT_RETURN' => Hook::paymentReturn(intval($id_order), intval($id_module))));$smarty->display(_PS_THEME_DIR_.'order-confirmation.tpl');include(dirname(__FILE__).'/footer.php');______________________ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now