Ok, after I updated VirtueMart to the latest version (for now) 2.0.26d, it seems that components/com_virtuemart/assets/js/facebox.js file is not loaded when the "Add to cart" button is pressed. I concluded that because I get an error in /components/com_virtuemart/assets/js/vmprices.js file:
Uncaught TypeError: Cannot read property 'settings' of undefined --> vmprices.js:89
To prevent this error, I modified the following lines (88 - 93) from /components/com_virtuemart/assets/js/vmprices.js file:
} else {
$.facebox.settings.closeImage = closeImage;
$.facebox.settings.loadingImage = loadingImage;
//$.facebox.settings.faceboxHtml = faceboxHtml;
$.facebox({ text: txt }, 'my-groovy-style');
}
with the following:
} else {
$.getScript("/components/com_virtuemart/assets/js/facebox.js", function(){
$.facebox.settings.closeImage = closeImage;
$.facebox.settings.loadingImage = loadingImage;
//$.facebox.settings.faceboxHtml = faceboxHtml;
$.facebox({ text: txt }, 'my-groovy-style');
});
}
and now the problem is solved!