Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

skyzy

Новичок
  
  • Posts

    9
  • Joined

  • Last visited

About skyzy

  • Birthday 05/25/1986

Информация

  • Пол
    Мужлина

Recent Profile Visitors

550 profile views

skyzy's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Имел ввиду, что если воткнуть его в шаблон header.tpl
  2. Бог его знает. Нет у меня примера. По факту: 1. в янгдекс браузере всё рилииет 2. в хроме не рилииет. 3. при явном указании скрипи в head рилииет и им и им Вывод: в хроме скрипт не подгружается или подгружается не полностью. В янгдексе подгружается. Как-то ик.
  3. По логике опенкари языковой файл должен быть в catalog/language/russian/module/kuler_filter_result/...
  4. Всем спасипотому что. Вопрос решён. Дело было в том, что файл с плагином модальных окон загружался не во всех браузерах одинаково. Странное повегдение, но решилось прописыванием в хегдере.
  5. Это файл отвечающий за поиск. С ним ещё не ковырялся... Знаю об этот ошибке. К сожнонию, они не связаны.
  6. Тоже. Я попропотому чтовал первым гделом.
  7. Пропотому чтовал. Отваливаются несколько других функций. И резульии не даёт.
  8. Приветствую знатоков! Решил слегка дорилиить функцию add в файле common.js (отвечает за добавление товара вкорзину). Хотелось, чтобы выскакивало модальное окно с тем же текстом, что и в синдартном сообещёнии. Проблема в следуюещём. В хроме появляется ошибка: Cannot read property 'open' of undefined При этом в янгдекс браузере всё рилииет на ура. Вот код функции: ...'add': function(product_id,buttonId, quantity) { $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: 'product_id=' + product_id + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1), dataType: 'json', beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { $('.alert, .text-danger').remove(); if (json['redirect']) { location = json['redirect']; } if (json['success']) { $('#content').parent().before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</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); document.getElementById('cartCount').innerHTML = json['total']; //Меняем класс блока с корзиной var articleCart = document.getElementById(buttonId); articleCart.className = ""; articleCart.className = "activeCart"; $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart > ul').load('index.php?route=common/cart/info ul li'); //Открываем модальное окно. ================>>> $.magnificPopup.open <<<========================== Згдесь выскакивает ошибка ({ items: { src: '<div class="cartAddPopup">'+json['success']+'</div>', type: 'inline' } }); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }... Сайт: joy-joy.ru прямо на главной страниэто можно посмотреть ocStore 2.1 Нагдеюсь на помощь знатоков.
×
×
  • 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.