How to fix "shopping cart is empty" (when it's not) problem in Virtuemart.

If you have vVrtuemart installed in Joomla and test the shopping cart only to find that although the cart has items in it, the error "Cart is empty" appears when you click "process order", Here is a solution suitable for most Virtuemart users.
The error "Cart is empty" is often a problem with the session. The most important thing is that the site addresses in virtuamart and your joomla configuration files are formatted the same way. i.e. both have www. The most common occurrence of this error is when one has www but not the other.
Start by logging in to Joomla administrator backend and then go to virtuemart>configuration>security
In the security tab of the virtuamart configuration you will see to addresses: "Site URL" and "SECUREURL". If these addresses don't both use www then you will no doubt see the "Cart is empty" error. NOTE. the Site URL can be http and the SECUREURL can be https, than not just fine, it's normal. But they should both have www.
If not Joomla considers these different sessions and when it changes it like Joomla thinks you have two Virtuemart sites, one with goods in the shopping cart and on without. So the "Shopping Cart is empty" error is not strictly incorrect because Joomla thinks that's the case.
If you get the "shopping cart is empty" error and both the site url and the secureurl are correctly formatted I can't tell you much more than that it is a session problem and that editing the ps_session.php file is probably required (although I don't know which changes to make).
This will fix the "shopping cart is empty" problem for most people. good luck!

| < Prev | Next > |
|---|

