VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: StompJames on February 05, 2018, 16:53:27 PM

Title: ad to cart pop up error
Post by: StompJames on February 05, 2018, 16:53:27 PM
Hello,

I have always used my site without the pop up for add to cart but I would like to use it now. When I enable Display modal popup upon 'Add to cart' and Use Fancybox I get the error below:

Uncaught TypeError: $.fancybox.showActivity is not a function
    at Object.cartEffect (update_cart.js?vmver=9293:2)
    at Object.Virtuemart.sendtocart (vmprices.js?vmver=9293:65)
    at HTMLInputElement.Virtuemart.addtocart (vmprices.js?vmver=9293:175)
    at HTMLInputElement.dispatch (jquery.min.js:3)
    at HTMLInputElement.r.handle (jquery.min.js:3)


Does anyone know how to solve this error?

Kind regards,

James
Title: Re: ad to cart pop up error
Post by: Jörgen on February 05, 2018, 17:25:58 PM
Please
http://forum.virtuemart.net/index.php?topic=79799.0 (http://forum.virtuemart.net/index.php?topic=79799.0)

This is probably a js error (fancybox not loaded) with your template or js configuration in VM, but who knows, You don´t give much.

regards

Jörgen @ Kreativ Fotografi
Title: Re: ad to cart pop up error
Post by: Studio 42 on February 06, 2018, 10:24:37 AM
If you have a link, to a page having the problem, we can perhaps help you.
Title: Re: ad to cart pop up error
Post by: StompJames on February 07, 2018, 15:24:11 PM
Sorry everyone I forgot to add my versions,

VirtueMart 3.0.18
Joomla! 3.6.5

Here is the URL to my staging site:
http://staging.mafiabike.com/index.php/bikes/kush/kush-2
The ssl certificate isn't active currently as it is on the main site so you may see a warning.

Again sorry for my previous post and it's lack of information.

Kind regards,

James
Title: Re: ad to cart pop up error
Post by: Studio 42 on February 07, 2018, 17:38:01 PM
You have a script loading fancybox again
try to disable each modules that can load this second fancybox.
Check in your template setting, or code, if this load fancybox
The second unneeded load is https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.25/jquery.fancybox.min.js, i'm pretty sure, it's not the template because https://staging.mafiabike.com/index.php/bikes/kush/kush-2?template=protostar have same error.