VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Ixelink on November 20, 2018, 08:48:40 AM

Title: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: Ixelink on November 20, 2018, 08:48:40 AM
Hi All,

I have gradually updated Joomla and Virtuemart, certainly because of the increase of PHP to 7.2. But suddenly, when everything is up-to-date, the shop is not working anymore. The + and - no longer work and putting in basket stays empty.
That is to my opinion part of VM itself, so outdated plugins should not be a reason.
Any ideas?

Regards,
Maarten
Title: Re: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: jenkinhill on November 20, 2018, 11:12:45 AM
Likely a javascript or template issue.  URL?
Title: Re: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: Ixelink on November 20, 2018, 11:23:00 AM
Hi Kelvyn,

URL: http://www.dewijnpurist.nl

Template is Beez20, the shop is in 'Assortiment'.
Already tried Bootstrap 4, but my 3 columns where gone into one. JQuery, I tried things.

Regards,
Maarten
Title: Re: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: jenkinhill on November 20, 2018, 11:38:39 AM
As expected a lot of errors in the console. These are the relevant ones:

Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/base/jquery-ui.css"
Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"
Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"
Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/base/jquery-ui.css"
Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"

And then a lot of the same error:
ReferenceError: jQuery is not defined

So you are not loading jQuery.  For a start turn off "Use external google jQuery library" and turn on "Using the VirtueMart jQuery"

Also you do not nneed to use jQueryEasy with VM3 which can cauuse problems - disable it.

The Bootstrap version switch is ready for the next Joomla version, J4, so should be left in its default setting.
Title: Re: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: Ixelink on November 20, 2018, 11:49:26 AM
Wow Kelvyn!

'Also you do not nneed to use jQueryEasy with VM3 which can cauuse problems - disable it.', and perhaps Using Virtuemart JQuery and not the Google one, it WORKS!

Fantastic help from across the North See! ;D
Title: Re: quantity and basket not working after J3.9, VM3.4.2, PHP7.2
Post by: jenkinhill on November 20, 2018, 12:04:20 PM
  ;D