VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Puck on October 16, 2018, 14:52:41 PM

Title: Add to cart empty cart
Post by: Puck on October 16, 2018, 14:52:41 PM
On my test site wich is not ready, I wanted to test my cart but when I add to cart the cart is empty: https://www.ispecial.nl/test/
The version of VM is VirtueMart 3.4.2, Joomla version is 3.8.13.
In the console you see errors and I don't know how to fix it.
I also use SP Pagebuilder.

Thank you in advance
Puck
Title: Re: Add to cart empty cart
Post by: GJC Web Design on October 16, 2018, 15:42:51 PM
???

Blocked loading mixed active content "http://code.jquery.com/jquery-latest.min.js"[Learn More] nl

why are you loading jquery externally AND by http -- get rid of that call and it should all work

But you are loading 1.06 MB of javascript!!!!  is that all really necessary?

And reloading Jquery at least twice .. get rid of the mod_sp_search load



Title: Re: Add to cart empty cart
Post by: jenkinhill on October 16, 2018, 15:46:52 PM
For a start you are loading 3 different versions of jQuery  first 1.12.4 (the VM correct version) then 1.11.1 - which as commented above is not loaded! And finaly 1.9.1 - apparently required by a module, mod_sp_vmsearch

It's a mess.
Title: Re: Add to cart empty cart
Post by: Puck on October 16, 2018, 18:20:10 PM
Thank you both for responding. How can I get rid of the unnecessary jQuery's? And how can I load them internally?
Title: Re: Add to cart empty cart
Post by: GJC Web Design on October 16, 2018, 19:14:17 PM
any well designed template or extension wouldn't have them loading in the first place -
if the designer did think it necessary .. perhaps to make it J2.5 compatible,  they should provide at least a config to stop it

If there is none then it is only possible by digging in the code to find the loads and removing them - for me perhaps half an hour

But it does raise the point about 3rd party extensions and templates .. you should try to limit them as much as possible as the more u have the more rubbish is loaded on the site and the greater the chances of these problems

the same applies to templates .. it may be nice to have bells and whistles on your site but if this is at the expense of poorly coded templates and therefore poor performance ( and the measure of a websites success so much today depends on perceived performance by Google and users)  then you can see where I'm going..

Title: Re: Add to cart empty cart
Post by: Puck on October 16, 2018, 19:24:04 PM
Hello, yeah you're so right about that. I'm not a developer, but I do a lot of work with cms and joomla etc. Normally I don't install so much stuff but now I tried to make it more fancy.
I think the best way is to start over, don't you think so?
Thank you so much.
Title: Re: Add to cart empty cart
Post by: GJC Web Design on October 16, 2018, 19:34:50 PM
are there no configs in the template or search module to switch off THEIR Jquery?

otherwise as I said .. half an hour to do it in the code  - email me if u need this done