Jump to content



Photo
* * * * * 1 votes

Shopping cart empty when checkout is clicked


This topic has been archived. This means that you cannot reply to this topic.
45 replies to this topic

#41   offie

offie
  • Members
  • 204 posts

Posted 08 June 2009 - 22:33

Thank to everyone here.

Nothing helped me, I am sorry to say.
What I finally did was to upgrade to PHP 5 and now everything works.

Hope this helps for you.



Hi all, just a quick note to say that I have also spent a few hours looking through various threads on this problem as I was also having the problem of products disappearing in checkout and most of the suggestions caused more problems than answers.

However, I had a previous website using Osc which worked fine although someone else helped set it up for me. It then dawned on me to check the configure.php file from my old site against this new one and to see if there were any major differences. I found a difference. The first part of my old site said:

define('HTTP_SERVER', 'http://jati-keswick.co.uk'); 
  define('HTTPS_SERVER', 'https://web40.secure-secure.co.uk/jati-keswick.co.uk'); 
  define('ENABLE_SSL', true); 
  define('HTTP_COOKIE_DOMAIN', 'jati-keswick.co.uk');
  define('HTTPS_COOKIE_DOMAIN', 'https://web40.secure-secure.co.uk/jati-keswick.co.uk');

My new site said:

define('HTTP_SERVER', 'http://classgifts.co.uk');
  define('HTTPS_SERVER', 'https://web245.secure-secure.co.uk/classgifts.co.uk');
  define('ENABLE_SSL', 'true');
  define('HTTP_COOKIE_DOMAIN', 'classgifts.co.uk');
  define('HTTPS_COOKIE_DOMAIN', 'classgifts.co.uk');

So I realised that the HTTPS_SERVER and HTTPS_COOKIE_DOMAIN had the same address on the old site but were different on my new site. So I changed:

define('HTTPS_COOKIE_DOMAIN', 'classgifts.co.uk');

to
define('HTTPS_COOKIE_DOMAIN', 'https://web245.secure-secure.co.uk/classgifts.co.uk');

I can now say that my products stay in the cart when I log-in and I have gone all the way through to complete checkout. I would suggest that you also look in your configure.php file in catalogue/includes/configure.php and change your address so that both HTTPS lines are the same. Remember to backup the file first incase of errors.

Hope this works for you like it has for me.

Michael

#42   Mohal

Mohal
  • Members
  • 11 posts

Posted 20 April 2010 - 10:52

I am having the same problem but my server is "localhost." I have tried all the given solutions in this post but nothing helps. Please, help me!

I have set up a demo site on my local machine.

#43   Mohal

Mohal
  • Members
  • 11 posts

Posted 20 April 2010 - 15:38

I am having the same problem but my server is "localhost." I have tried all the given solutions in this post but nothing helps. Please, help me!

I have set up a demo site on my local machine.



/sad.gif' class='bbc_emoticon' alt=':(' />

After waiting for 5 hours for a reply I had to downgrade to older Apache Server version. So that I can solve my problem.

This is not fair.

#44   hostnesia

hostnesia
  • Members
  • 1 posts

Posted 08 July 2010 - 16:54

Just another help: localhost or SSL
I'm using localhost with winXP, problem is same "Shopping cart empty" and I am trial and error.

Problem start when i am try to play with cookies (hmm some SEO add-ons), change setting in admin. Restore it to start conditions but still not help.

Finally I try to open configure.php in c:/apache/htdocs/.../shop/includes/configure.php
Change setting from
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');

to this one
define('HTTP_COOKIE_DOMAIN', ''); //remove string "localhost"
define('HTTPS_COOKIE_DOMAIN', '');

And it works. Hope this help. Semoga membantu.

www.hostnesia.com

#45   markashworth

markashworth
  • Members
  • 1 posts

Posted 29 August 2010 - 15:33

A long way back in this thread, decursus gave me the idea to get this fixed.

My problem was solved by adding the full URL, inclusive of 'www.' For example.

1. This was causing the error "Your Shopping Cart is empty!"

define('HTTP_SERVER', 'http://myexamplewebsite.com');
define('HTTPS_SERVER', 'https://myexamplewebsite.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'myexamplewebsite.com');
define('HTTPS_COOKIE_DOMAIN', 'myexamplewebsite.com');

2. This FIXED my error:

define('HTTP_SERVER', 'http://www.myexamplewebsite.com');
define('HTTPS_SERVER', 'https://www.myexamplewebsite.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'myexamplewebsite.com');
define('HTTPS_COOKIE_DOMAIN', 'myexamplewebsite.com');


Three cheers for decursus.

#46   pmcclenaghan

pmcclenaghan
  • Members
  • 1 posts

Posted 09 May 2012 - 10:59

Excellent... this sorted out a few problems I was having including:

• Empty cart after clicking 'Buy Now'
• Having the session ID showing in address bar and links
• Sorted out secure areas - using the www I could then change the HTTPS_SERVER address to 'https://www.myexamplewebsite.com' whereas before it only worked if I had 'https://myhostingcom...mplewebsite.com'

Thanks!