Author Topic: Add to cart empty cart  (Read 301 times)

Puck

  • Beginner
  • *
  • Posts: 3
  • I do a lot with Joomla
Add to cart empty cart
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Add to cart empty cart
« Reply #1 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



GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27043
  • Always on vacation
    • Jenkin Hill Internet
Re: Add to cart empty cart
« Reply #2 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

Puck

  • Beginner
  • *
  • Posts: 3
  • I do a lot with Joomla
Re: Add to cart empty cart
« Reply #3 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Add to cart empty cart
« Reply #4 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..

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Puck

  • Beginner
  • *
  • Posts: 3
  • I do a lot with Joomla
Re: Add to cart empty cart
« Reply #5 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Add to cart empty cart
« Reply #6 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation