Перестал добавляться товар в корзину
После обновлений до последней версии перестал добавляться товар в корзину
Не каких изменений вручную не вносилось
/templates/template1/hostcms_adaptive.js
(function(jQuery){
// Функции без создания коллекции
jQuery.extend({
bootstrapAddIntoCart: function(path, shop_item_id, count){
$.clientRequest({
path: path + '?add=' + shop_item_id + '&count=' + count,
'callBack': $.bootstrapAddIntoCartCallback,
context: $('.little-cart'
});
return false;
},
bootstrapAddIntoCartCallback: function(data, status, jqXHR)
{
$.loadingScreen('hide'
;
jQuery(this).html(data);
},
subscribeMaillist: function(path, maillist_id, type){
$.clientRequest({
path: path + '?maillist_id=' + maillist_id + '&type=' + type,
'callBack': $.subscribeMaillistCallback,
context: $('#subscribed_' + maillist_id)
});
return false;
},
subscribeMaillistCallback: function(data, status, jqXHR)
{
$.loadingScreen('hide'
;
jQuery(this).removeClass('hidden'
.next().hide();
}
});
})(jQuery);
Разметка
<div class="little-cart">
<div class="mt-cart">
<a href="/shop/cart" title="Перейти в корзину">
<div class="little-cart-info">
<div class="cart-ico">
<i class="fa fa-shopping-cart"></i>
</div>
<div class="empty-cart">
<div>0 товаров — 0 руб.</div>
</div>
</div>
</a>
<div class="more-cart-info">
<div class="cart-item-list-empty">В корзине нет ни одного товара</div>
</div>
</div>
</div>
XSL
<button class="button btn-cart" onclick="return $.bootstrapAddIntoCart('{/shop/url}cart/', {@id}, 1)" title="Add to Cart" type="button"></button>
В консоле пишет:
TypeError: $ is undefined[Подробнее] nakleiki-hand-made-list-na-liste-12-sht:1:1
onclick
http://msbaker.ru/shop/iarlyki-i-nakleiki/nakleiki-hand-made-list-na-liste-12-sht/:1:1
Сайт
msbaker.ru