Hi Chris,
I looked at your website and your source codes.
It is good to use the compression plugin to compress the HTML lines, which will give some performance boost. But they are most likely tend to generate the conflict problems (most of the time). Because compressing HTML mess up the inline javascript lines. I am sure disabling the HTML compressing will eliminate this script issue upon add to cart and most of the other problems you have mentioned.
(i am talking about HTML compression, not CSS or JS compressions.. you can leave them enabled)
But you can also do this to eliminate the "Script" problem that occurs upon add to cart;
open this PHP file:
/templates/flexible_coolmart/html/com_virtuemart/productdetails/default.php
and remove these lines:
(from 105th to 137th line)
var vmcartck = $('.vmCartModule');
if (typeof vmcartck != 'undefined') {
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': '9999999999'})
.appendTo($('body'))
.animate({
'top': vmcartck.top+50,
'left': vmcartck.left+150,
'width':150,
'height':150
},1800, 'swing');
imgclone.animate({
'width': 0,
'height': 0
});
}
});
};
Be very cautious about when you start deleting and when you finish deleting. If you delete one more line or one less line, you will end up JavaScript console error. So carefully count the curly brackets and close-paranthessis.
Regards,
Support