kyestu Posted October 14, 2013 Share Posted October 14, 2013 Хелло. Нужно убрать страницу "подтверждение заказа" Используется модуль One page checkout, Версия PS: 1.5.5 Link to comment Share on other sites More sharing options...
absent Posted October 14, 2013 Share Posted October 14, 2013 Хелло. Нужно убрать страницу "подтверждение заказа" Используется модуль One page checkout, Версия PS: 1.5.5 модуль оплаты какой? Link to comment Share on other sites More sharing options...
kyestu Posted October 14, 2013 Author Share Posted October 14, 2013 По идее.. module/cashondelivery/validation Только без фанатизма. Работы на 2 минуты. Link to comment Share on other sites More sharing options...
kyestu Posted October 14, 2013 Author Share Posted October 14, 2013 Написал в скайп. Link to comment Share on other sites More sharing options...
absent Posted October 14, 2013 Share Posted October 14, 2013 контроллер поправить чтобы сразу заказ создавал без проверки... если содержимое public function postProcess() сунуть в public function initContent() предварительно очистив public function initContent() то получится то что нужно. это навскидку, под рукой нет престы Link to comment Share on other sites More sharing options...
absent Posted October 14, 2013 Share Posted October 14, 2013 примерно так public function initContent() { $this->display_column_left = false; parent::initContent(); $customer = new Customer((int)$this->context->cart->id_customer); $total = $this->context->cart->getOrderTotal(true, Cart::BOTH); $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder); } 1 Link to comment Share on other sites More sharing options...
kyestu Posted October 14, 2013 Author Share Posted October 14, 2013 Работает. Спасибо, коллега. 1 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