Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leoon

Newbie
  
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Leoon's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Не удобно в том смысле, что файлы закодированные, и нет возможности поставить модуль на тестовый сайт (виртуальный хостинг) и крутить его там как мне надо. Получается как автор сделал, так все это и останется, а доработать возможности нет!
  2. Хочу поменять местами "Адрес доставки" и "Способ доставки" т.е. сначала выбрать как доставлять, а исходя из этого показывать или скрывать шаг "Адрес доставки" Например, если "Самовывоз", то пропустить шаг "Адрес доставки", а если "Доставка" - показать/развернуть шаг "Адрес доставки" НО! если не заполнены и не сохранены поля "Адреса доставки", то методы доставки недоступны (появляется ошибка) Как быть, подскажите? Модуль Simple не советуйте, меня это решение не устраивает....хотя бы потому что там лицензия из-за которой не удобно работать P.S. В шаге "Адрес доставки" есть обязательные поля, убирать их проверку нельзя!
  3. Как можно при оформлении заказа, если клиент авторизовался, указать другой номер телефона (не тот что был указан при регистрации)? Пример: Я зарегистрировался на сайте с номером телефона +123456789 Авторизовался на сайте Начал оформлять заказ, и хочу чтобы в заказе фигурировал уже другой номер телефона ( не тот что указал при регистрации +123456789 )
  4. да, действительно, уже обратил... Переписал вот так, страница уже не перезагружается, но и цена не обновляется! Что не так делаю? success: function(json) { $('.alert-dismissible, .text-danger').remove(); if (json['redirect']) { location = json['redirect']; } if (json['success']) { $('#content').parent().before('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">&times;</button></div>'); // Need to set timeout otherwise it wont update the total setTimeout(function () { $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>'); }, 100); $('#cart').load('index.php?route=checkout/cart #cart > *'); $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart > ul').load('index.php?route=common/cart/info ul li'); } }
  5. В common.js вот что, вроде бы все правильно.... var cart = { 'update': function(key, quantity) { $.ajax({ url: 'index.php?route=checkout/cart/edit', type: 'post', data: 'key=' + key + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1), dataType: 'json', beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { // Need to set timeout otherwise it wont update the total setTimeout(function () { $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>'); }, 100); if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') { location = 'index.php?route=checkout/cart'; } else { $('#cart > ul').load('index.php?route=common/cart/info ul li'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }
  6. Здравствуйте! Никак не могу решить проблему с обновлением количества товаров на странице "Корзина" без перезагрузки страницы Манипуляции описанные в данной теме не помогают Как только не пытался я изменить код в контроллере, страница в любом случае перезагружается! ...\catalog\view\theme\default\template\checkout\cart.twig <button type="submit" onclick="cart.update('{{ product.cart_id }}')" ><i class="fa fa-refresh"></i></button> ...\catalog\controller\checkout\cart.php public function edit() { $this->load->language('checkout/cart'); $json = array(); // Totals $this->load->model('setting/extension'); $totals = array(); $taxes = $this->cart->getTaxes(); $total = 0; // Because __call can not keep var references so we put them into an array. $total_data = array( 'totals' => &$totals, 'taxes' => &$taxes, 'total' => &$total ); // Update if (is_array($this->request->post['quantity']) && !empty($this->request->post['quantity']) ) { foreach ($this->request->post['quantity'] as $key => $value) { $this->cart->update($key, $value); } unset($this->session->data['shipping_method']); unset($this->session->data['shipping_methods']); unset($this->session->data['payment_method']); unset($this->session->data['payment_methods']); unset($this->session->data['reward']); $this->response->redirect($this->url->link('checkout/cart')); } else if (is_numeric($this->request->post['quantity'])) { $json['total'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']) ); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } Кто-нибудь нашел решение? Подскажите, как с этим бороться? Хочу обновлять без перезагрузки страницы, ajax'ом
  7. Необходимо, чтобы после оформления заказа, покупателю на e-mail приходило письмо с прикрепленным Счетом на оплату!
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.