Author Topic: Cart is empty after "go to checkout"  (Read 1267 times)

anaisthitos

  • Beginner
  • *
  • Posts: 3
Cart is empty after "go to checkout"
« on: July 09, 2012, 05:19:17 AM »
Hello everyone,

I have a really big problem and i wand some advices if you like..

My Uncle has an e-store and look what is happening sometimes(most in the first visit),

First of all i got to tell you it's on
Joomla 1.5.25
Virtuemart 1.1.9
sh404sef 2.4.6.1033

So if someone just enter the store to buy something and he adds a product in the cart everything is fine, he redirected to teh cart page with tow option "Continue Shoppin" and "Checkout".

Sometimes not everytime, from some browsers my friends that i gave them to test it they said when they hit the Checkout option it says "The cart is empty".

And i realize that the site have about 100-120 visits per day according to google analytics and it also hove more than 30 events that triggering from the add to cart button. Why nobody is not buing, and after a lot of testing i realised this.

Can enybody help me?

the url is http://www.injuvmed.com

jenkinhill

  • Global Moderator
  • Super Hero
  • *
  • Posts: 16431
  • UK based web developer & consultant.
    • Jenkin Hill Internet
Re: Cart is empty after "go to checkout"
« Reply #1 on: July 10, 2012, 03:37:56 AM »
Kelvyn
Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

It is essential that you mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Support for Joomla 1.5 has ended


Currently using VM2.0.20b on Joomla 2.5.11 PHP 5.3.17

stAn99

  • Development Team
  • Beginner
  • *
  • Posts: 38
    • One Page Checkout for Virtuemart 2
Re: Cart is empty after "go to checkout"
« Reply #2 on: July 24, 2012, 04:44:11 AM »
Hello, i was just working on a similar problem at my client on VM2 but this also concenrs VM1. The empty cart is most probably a result of any of these:
- some part of the script saves an escape character | into the session  (incorrectly encoded shipping on VM1)
- your session size is too small as defined in the database (jos_session, column data is normally of type TEXT which is limited to 64kb)

On VM2 the 64kb on my client's system was equivalent to 16 products, in VM1 it may be a little bit more depending on other data being saved in session.

The problem of the empty cart problem after ... (login, going to checkout, etc..) is mostly caused by the session being larger then the 64kb. The solution is to alter the jos_session (change to your prefix) table with this:

ALTER TABLE  `jos_session` CHANGE  `data`  `data` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL

Which will change the data type from TEXT (64kb) to MEDIUMTEXT (16mb)

To check your current sizes in your live shop, you can run this sql in the phpMyAdmin which will return number of bytes of the largest data in your session
SELECT MAX(LENGTH(data)) FROM jos_session;

Best Regards,
Stan

VirtueMart Forum

Re: Cart is empty after "go to checkout"
« Reply #2 on: July 24, 2012, 04:44:11 AM »