Author Topic: ad to cart pop up error  (Read 437 times)

StompJames

  • Beginner
  • *
  • Posts: 25
  • A beginner
  • Skype Name: James Pett (james@ridestomp.com)
ad to cart pop up error
« 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

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1603
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: ad to cart pop up error
« Reply #1 on: February 05, 2018, 17:25:58 pm »
Please
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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3242
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: ad to cart pop up error
« Reply #2 on: February 06, 2018, 10:24:37 am »
If you have a link, to a page having the problem, we can perhaps help you.

StompJames

  • Beginner
  • *
  • Posts: 25
  • A beginner
  • Skype Name: James Pett (james@ridestomp.com)
Re: ad to cart pop up error
« Reply #3 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

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3242
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: ad to cart pop up error
« Reply #4 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.