hmmm.
It checks if the
Virtuemart Object has been defined or not (to check if you are on a VM related page or not). It shouldn't have generated any error message just because the Object is undefined, this is what we are checking ;). Weird....
Actually:
in the 2nd line of your code; should have been
if (!Virtuemart['addtocart_popup']) {
double weird... :)
Anyway, open this PHP file:
/modules/mod_vm_flexible_fancy_slider/mod_vm_flexible_fancy_slider.php
Find these lines (line#147)
jQuery(function() {
if (!Virtuemart['addtocart_popup']) {
jQuery('form.flexibleFancySlider').each(function() {
jQuery('<input>').attr({
type: 'hidden',
name: 'task',
value: 'add'
}).appendTo(jQuery(this));
});
//console.log('This is a non-virtuemart page');
}
});
and replace them to this:
jQuery(function() {
if (Virtuemart['addtocart_popup'] === undefined) {
jQuery('form.flexibleFancySlider').each(function() {
jQuery('<input>').attr({
type: 'hidden',
name: 'task',
value: 'add'
}).appendTo(jQuery(this));
});
//console.log('This is a non-virtuemart page');
}
});
then see if you are still getting the Console error.
Regards