News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Out of the blue, the cart stays empty after adding products.

Started by hansz, August 23, 2013, 16:42:52 PM

Previous topic - Next topic

hansz

Hi,

For months our shop worked like a charm.

Just at once the cart doesn't show any products.
Even if I add products, the cart stays empty.

Is this a known issue?

What can I do to fix this?

Thanks in advance.

Hans
Joomla 2.5.11 - Virtuemart 2.0.20b - K2 2.6.6 - K2Mart 2.0.5 - OPC 2.0.191

jenkinhill

Was anything updated or installed on the site, such as other plugins or modules?  Did the host make any changes, for example in PHP version?

Joomla 2.5.11 has known security issues, so check if there is any possibility that the site was hacked.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

hansz

Thanks for your reply, Jenkhill.

I contacted the host and nothing has been updated/upgraded/moved or restored....

We also didn't add or change anything.

I see that you are on Joomla 2.5.14 and VM 2.0.22b. Did the update go smootly?

Thanks.
Joomla 2.5.11 - Virtuemart 2.0.20b - K2 2.6.6 - K2Mart 2.0.5 - OPC 2.0.191

jenkinhill

The updates took just a couple of minutes and no problems. And both are security updates.

Post a url of the non-working site so somebody can have a look.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

hansz

Joomla 2.5.11 - Virtuemart 2.0.20b - K2 2.6.6 - K2Mart 2.0.5 - OPC 2.0.191

Maxim Pishnyak

Your template use own jquery.js. That's bad cos VM use own jquery too. Two jquery's is BAD.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

hansz

Hi Maxim,

Thanks for you reply.

What is the best way to solve this?

Thanks in advance.
Joomla 2.5.11 - Virtuemart 2.0.20b - K2 2.6.6 - K2Mart 2.0.5 - OPC 2.0.191

Maxim Pishnyak

Explore your web site more deeply. Contact with template author if this is necessary.

In general there must be options to turn off jquery.js.

Two jquery = two options somewhere to turn them off.

As last resort pm me access.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

On adding a product to the cart using Firefox 23.0.1  the errors recorder in the Firebug console gave several issues starting with this:

ReferenceError: jQuery is not defined
var $K2 = jQuery.noConflict();

But more importantly it also gave an error message that it could not download the external jQuery from Google's servers (also a font from Google could not be downloaded).

In IE10 I get a string of JavaScript errors, starting with a problem in k2.js. Here is the start of the  info from IE10 debugger:

SCRIPT5009: 'jQuery' is undefined
k2.js, line 9 character 1
SCRIPT438: Object doesn't support property or method 'on'
bootstrap.js, line 156 character 3

So despite the page code showing that jQuery for K2 should be downloaded before the k2.js ran, it seems it was not downloaded, hence the jQuery is undefined. error. Maybe your server settings now do not permit download of remote js files?

Yes, you are supposedly loading two versions of jQuery, both from Google, the first looks like from K2 and the second from VirtueMart.I suugest you change to using local copies of jQ - in VM configuration/templates turn off  Use external google jQuery library. You will have to do the same for K2.

You may also benefit from de-selecting Using the VirtueMart jQuery  in VM configuration/templates or maybe try using jQueryEasy. See http://forum.virtuemart.net/index.php?topic=111843.0


Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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