KoVaLsKy 59 Posted January 18, 2013 Report Share Posted January 18, 2013 http://vamshop.ru/fo...hp/page__st__40 В checkout_success.php закомментировать вот этот кусок: // if the customer is not logged on, redirect them to the default pageif (!isset ($_SESSION['customer_id'])) {vam_redirect(vam_href_link([color=red][size=4]FILENAME_DEFAULT[/size][/color]));} // SMART CHECKOUT BOFif (SMART_CHECKOUT == 'true') { // if the customer is not logged on, redirect them to the default page if ((!vam_session_is_registered('customer_id')) && (!vam_session_is_registered('noaccount')) && (!isset($_POST['action']))) { vam_redirect(vam_href_link([color=red][size=4]FILENAME_DEFAULT[/size][/color])); } } else { // if the customer is not logged on, redirect them to the default page if ((!vam_session_is_registered('customer_id')) && (!isset($_POST['action']))) { vam_redirect(vam_href_link([color=red][size=4]FILENAME_DEFAULT[/size][/color])); }}//SMART CHECKOUT EOF т.е должно получиться // if the customer is not logged on, redirect them to the default page //if (!isset ($_SESSION['customer_id'])) { // vam_redirect(vam_href_link(FILENAME_DEFAULT)); //} // SMART CHECKOUT BOF //if (SMART_CHECKOUT == 'true') { // if the customer is not logged on, redirect them to the default page // if ((!vam_session_is_registered('customer_id')) && (!vam_session_is_registered('noaccount')) && (!isset($_POST['action']))) { // vam_redirect(vam_href_link(FILENAME_DEFAULT)); // } //} else { // if the customer is not logged on, redirect them to the default page // if ((!vam_session_is_registered('customer_id')) && (!isset($_POST['action']))) { // vam_redirect(vam_href_link(FILENAME_DEFAULT)); // } //} //SMART CHECKOUT EOF [/code] Quote Link to post Share on other sites
biznesstroy 1 Posted February 13, 2013 Report Share Posted February 13, 2013 я не понял, этот кусок комментить? // if the customer is not logged on, redirect them to the shopping cart page if (!isset ($_SESSION['customer_id'])) { vam_redirect(vam_href_link(FILENAME_SHOPPING_CART)); } if (isset ($_GET['action']) && ($_GET['action'] == 'update')) { if ($_SESSION['account_type'] != 1) { vam_redirect(vam_href_link(FILENAME_DEFAULT)); } else { vam_redirect(vam_href_link(FILENAME_LOGOFF)); } } $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SUCCESS); $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SUCCESS); Quote Link to post Share on other sites
support 446 Posted February 14, 2013 Report Share Posted February 14, 2013 Выше код указан какой комментировать и какой должен получиться, по-моему, вполне понятно написано. Quote Link to post Share on other sites
biznesstroy 1 Posted February 14, 2013 Report Share Posted February 14, 2013 SMART CHECKOUT BOFвот этот кусок кода я поискал по всем файлам магаза и ничего не нашол. версия 1.68, моего магаза. может я не там ищу????? checkout_success.php этот файл только в корне?? Но искал то я по всему вам шопу, пхп эксперт умеет это делать искать в папке в коде..... Что я делаю не так? Quote Link to post Share on other sites
KoVaLsKy 59 Posted February 15, 2013 Author Report Share Posted February 15, 2013 Этот файл с версии 1.69 Quote Link to post Share on other sites
biznesstroy 1 Posted February 15, 2013 Report Share Posted February 15, 2013 а как в 1.68 сделать? я не хочу на 1.69 пока переходить.... видел, что много ошибочек лезет..... или это нельзя сделать в 1.68? Quote Link to post Share on other sites
eugenem 11 Posted February 15, 2013 Report Share Posted February 15, 2013 В 1.68 нет этого функционала. Ни как не сделать. Quote Link to post Share on other sites
biznesstroy 1 Posted February 16, 2013 Report Share Posted February 16, 2013 спс Quote Link to post Share on other sites
LordBelial 0 Posted March 21, 2013 Report Share Posted March 21, 2013 Установил сайт, на новый хостинг, а там не работает "Способ отправки E-Mail: mail" , которым я постоянно пользуюсь. Сразу же я написал им в службу поддержки. Они что-то сделали (думаю, что в скрипте сайта они не ковырялись) , и эта функция стала работать, но при быстром оформлении товара, при нажатии кнопки "оформить заказ" не появляется страницы "Ваш заказ успешно оформлен." (checkout_success.php). При этом заказ оформляется, письма администратору магазина и заказчику отправляются. Если оформляет заказ уже зарегистрированный пользователь, то в конце оформления заказа страница "Ваш заказ успешно оформлен." (checkout_success.php) появляется. Что надо сделать что бы при быстром оформлении товара страница с успешным оформлением товара появлялась? Не помогло :( Quote Link to post Share on other sites
support 446 Posted March 21, 2013 Report Share Posted March 21, 2013 Так другого варианта нет, страница checkout_success.php возвращается именно так, может не так что исправили. Quote Link to post Share on other sites
LordBelial 0 Posted May 4, 2013 Report Share Posted May 4, 2013 Может от хостинга зависит, точнее он настройки сервера. На одном вообще быстрое оформление не работает, на другом все получилось. Quote Link to post Share on other sites
support 446 Posted May 4, 2013 Report Share Posted May 4, 2013 Может просто права доступа нужные на файлы не выставлены, у некоторых хостера php не работает, пока определённые права доступа не выставишь. Quote Link to post Share on other sites
LordBelial 0 Posted May 4, 2013 Report Share Posted May 4, 2013 В движке 1.70, поле этого изменения, при нажатии "распечатать", на странице "Ваш заказ успешно оформлен", в место бланка печати вылезает такая штука: Warning: Smarty error: unable to read resource: "/lang_.conf" in /var/www/u5848563/data/www/erundy.net/includes/external/smarty/Smarty.class.php on line1113 You are not allowed to view this order! В других версиях не пробовал. Quote Link to post Share on other sites
LordBelial 0 Posted May 4, 2013 Report Share Posted May 4, 2013 В версии 1.70 не обязательно коментировать код. Достаточно сделать следующие настройки (настройка>Оформление заказов): Разрешить быстрое оформление заказа и Включить "Создание аккаунта обязательно". Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.