Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

sordak

Новачок
  
  • Публікації

    1
  • З нами

  • Відвідування

sordak's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter

Recent Badges

0

Репутація

  1. Приветствую всех. Есть проблема с оформлением заказа. Заполняю поля до 3-его шага, принимаю условия соглашения (ставлю галку) и нажимаю на кнопку "Продолжить". Получаю сообщение: ---------------- error undefined ---------------- Скриншот в приложении (или по ссылке http://ibb.co/G7PZrnG ) Никаких ошибок в журнале веб-сервера не нашел. Все запросы проходят со статусом 200 (проверял и через журнал, и через отладчик браузера). В чем может быть проблема? _________________________________________________________________________________ Сообщение об ошибке выдается кодом из файла: /http/catalog/view/theme/default/template/checkout/checkout.tpl А именно: $(document).delegate('#button-payment-method', 'click', function() { $.ajax({ url: 'index.php?route=checkout/payment_method/save', type: 'post', data: $('#collapse-payment-method input[type=\'radio\']:checked, #collapse-payment-method input[type=\'checkbox\']:checked, #collapse-payment-method textarea'), dataType: 'json', beforeSend: function() { $('#button-payment-method').button('loading'); }, success: function(json) { $('.alert, .text-danger').remove(); if (json['redirect']) { location = json['redirect']; } else if (json['error']) { $('#button-payment-method').button('reset'); if (json['error']['warning']) { $('#collapse-payment-method .panel-body').prepend('<div class="alert alert-danger">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>'); } } else { $.ajax({ url: 'index.php?route=checkout/confirm', dataType: 'html', complete: function() { $('#button-payment-method').button('reset'); }, success: function(html) { $('#collapse-checkout-confirm .panel-body').html(html); $('#collapse-checkout-confirm').parent().find('.panel-heading .panel-title').html('<a href="#collapse-checkout-confirm" data-toggle="collapse" data-parent="#accordion" class="accordion-toggle"><?php echo $text_checkout_confirm; ?> <i class="fa fa-caret-down"></i></a>'); $('a[href=\'#collapse-checkout-confirm\']').trigger('click'); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); // <===== ERROR } }); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); _________________________________________________________________________________ Hello all. I have a problem with order checkout. I am filling fields up to 3rd step, accepting agreements and clicking "Continue" button. Then I get alert: ---------------- error undefined ---------------- : http://ibb.co/G7PZrnG There is no any error in web-server logs. All requests are OK (status 200). What is wrong?

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.