- 9
I'm working on a 4.0 site that has several of the Seven Spikes plugins installed. We have an error on the homepage coming from the Ajax Cart Plugin. This only seems to occur on the homepage itself, and the plugin is otherwise functional. This error is causing problems on the homepage. For example the flyout cart doesn't work because of it. I've tried re-installed all Seven Spikes plugins including the core, however that didn't make any difference. The error is as follows:
Uncaught TypeError: a(...).kendoWindow is not a function
at M (AjaxCart.min.js:formatted:433)
at HTMLDocument.<anonymous> (AjaxCart.min.js:formatted:524)
at c (jquery-1.10.2.min.js:4)
at Object.fireWith [as resolveWith] (jquery-1.10.2.min.js:4)
at Function.ready (jquery-1.10.2.min.js:4)
at HTMLDocument.q (jquery-1.10.2.min.js:4)
Code:
function M() {
var t = f()
, o = a(t);
if (o.length > 0) {
o.prepend('<div class="addProductToCartErrors"></div><div class="addProductVariantToCartErrors"></div><div class="miniProductDetailsView"></div><div class="productAddedToCartWindow"></div>');
var e = a(".miniProductDetailsView").kendoWindow({
draggable: !1,
resizable: !1,
modal: !0,
actions: ["Close"],
animation: !1,
visible: !1
}).data("kendoWindow");
e.wrapper.addClass("ajaxCart"),
a(document).on("click", ".k-overlay", function() {
e.close()
})
}
var r = a(".productAddedToCartWindow").kendoWindow({
draggable: !1,
resizable: !1,
modal: !0,
actions: ["Close"],
animation: !1,
visible: !1
}).data("kendoWindow");
r.wrapper.addClass("ajaxCart"),
a(document).on("click", ".k-overlay", function() {
r.close()
})
}
Uncaught TypeError: a(...).kendoWindow is not a function
at M (AjaxCart.min.js:formatted:433)
at HTMLDocument.<anonymous> (AjaxCart.min.js:formatted:524)
at c (jquery-1.10.2.min.js:4)
at Object.fireWith [as resolveWith] (jquery-1.10.2.min.js:4)
at Function.ready (jquery-1.10.2.min.js:4)
at HTMLDocument.q (jquery-1.10.2.min.js:4)
Code:
function M() {
var t = f()
, o = a(t);
if (o.length > 0) {
o.prepend('<div class="addProductToCartErrors"></div><div class="addProductVariantToCartErrors"></div><div class="miniProductDetailsView"></div><div class="productAddedToCartWindow"></div>');
var e = a(".miniProductDetailsView").kendoWindow({
draggable: !1,
resizable: !1,
modal: !0,
actions: ["Close"],
animation: !1,
visible: !1
}).data("kendoWindow");
e.wrapper.addClass("ajaxCart"),
a(document).on("click", ".k-overlay", function() {
e.close()
})
}
var r = a(".productAddedToCartWindow").kendoWindow({
draggable: !1,
resizable: !1,
modal: !0,
actions: ["Close"],
animation: !1,
visible: !1
}).data("kendoWindow");
r.wrapper.addClass("ajaxCart"),
a(document).on("click", ".k-overlay", function() {
r.close()
})
}