Hi,
Because "Cart Module" must be presented to run the "animation" in the product details page.
If you want to unpublished the cart module, then you need some coding modifications in the product details page:
Don't worry, it is easy. Follow my steps:
1- open this PHP file:
/templates/flexible_lightmart/html/com_virtuemart/productdetails/default.php
2- Look for these lines:
if (!empty($this->product->images[0]->file_url_thumb)) {
$document->addScriptDeclaration("
jQuery(document).ready(function($) {
var vmcartck = $('.vmCartModule');
vmcartck.top = vmcartck.offset().top;
vmcartck.left = vmcartck.offset().left;
$('input.addtocart-button').click(function() {
var el = $(this);
var imgtodrag = $('div.main-image img.product-image');
if (!imgtodrag.length) {
elparent = el.parent();
while (!elparent.hasClass('spacer')) {
elparent = elparent.parent();
}
}
if (imgtodrag.length) {
var imgclone = imgtodrag.clone()
.offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left })
.css({'opacity': '0.7', 'position': 'absolute' , 'height':'auto' , 'width': '300px','z-index': '1000'})
.appendTo($('body'))
.animate({
'top': vmcartck.top+50,
'left': vmcartck.left+150,
'width':150,
'height':150
},1800, 'swing');
imgclone.animate({
'width': 0,
'height': 0
});
}
});
});
");
}
3- remove those lines completely.
You won't see the error message anymore, and everything will work as expected (even though you unpublished the Cart Module)
Regards,
Support