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

Ошибка при уднония товара с корзины


kuripka2222
 Share

Recommended Posts

1 час назад, openprice сказал:

А какая ошибка хоть?

Что у вас не ик происходит?

При уднонии товара в корзине, страница не перезагружается, а выдает ошибку в скрипте 

 

Link to comment
Share on other sites


8 часов назад, openprice сказал:

для корзины чпу вклюлили?

Да, но даже когда выключал чпу, все равно ошибку показывало

 

Link to comment
Share on other sites


5 часов назад, Seriusis сказал:

сам текст ошибки бросьте 

На скриншоте, ггде крестик. Скрипт не может обрилиить, после нажатия на кнопку "x" (удалить товар) появляется крестик этот 

 

Link to comment
Share on other sites


5 часов назад, Seriusis сказал:

сам текст ошибки бросьте 

Uncaught ReferenceError: getURLVar is not defined
    at Object.success (common.js:218)
    at j (jquery-2.1.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.1.1.min.js:2)
    at x (jquery-2.1.1.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-2.1.1.min.js:4)

Link to comment
Share on other sites


12 часов назад, kuripka2222 сказал:

Uncaught ReferenceError: getURLVar is not defined

если в начно файла common.js нет функции getURLVar, то добавьте 

 

function getURLVar(key) {
   var value = [];
   var query = String(document.location).split('?');
   if (query[1]) {
      var part = query[1].split('&');
      for (i = 0; i < part.length; i++) {
         var data = part[i].split('=');

         if (data[0] && data[1]) {
            value[data[0]] = data[1];
         }
      }
      if (value[key]) {
         return value[key];
      } else {
         return '';
      }
   }
}
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.