cancel
Showing results for 
Search instead for 
Did you mean: 

Magento cart Error

Magento cart Error

Hi Community,

 

I am using Magento 1.14.1 and I am getting the error like "Your shopping cart is empty" after clicking the place order button in the checkout and order is placed successfully.

 

could you please help me to how to resolve this issue and why this is happening.

 

Thanks

Mahesh D.

7 REPLIES 7

Re: Magento cart Error

Hello @mahesh_dasari1 ,

Please try same process again in a private window, if it works fine in private window then the problem in due to cookies.

Actually by default the magento cookie lifetime is set to 3600 (1 hour). But if the end users computer time runs ahead of server’s time, cookies will not get set for Magento frontend as well as backend.

I have fixed this issue by increasing the cookie lifetime to 86400 in Sytem -> Configuration -> Web -> Session and Cookie Management

Hope this will works for you. If you still face any issue please let me know.

If it helps you, please give us kudos and accept it as solution.

Regards.

Re: Magento cart Error

Hi Pandey,

 

Thank you for your response but in my system, I have set the cookie values to 86400. I have tested in private windows also, i am getting the same error.

 

thanks

Mahesh D.

Re: Magento cart Error

Hi @mahesh_dasari1,

Many times, when you receive a 404 error or exception in the ajax of checkout, it will return you to the cart.

What you can do is a number of things to detect what is going wrong:

Enable error reporting from index.php.

Open up your browser debugger and monitor the Ajax requests.

Check once in network tab In browser console. May be you got 404 error in response or error.

Look in your var/log/system.log file for any errors

Look in your var/log/exception.log file for any errors

May be any custom module observer creating problems.

I hope it will help you!

Re: Magento cart Error

Hello @mahesh_dasari1 

Please try by setting the following config setting

System > Configuration > Web > Session Cookie Management and enter domainname.com in "Cookie Domain" & "Cookie path" /

Please enter your domain name instead of domainname.com

Hope this will work if still you face same issue, please let me know. 

Regards

Re: Magento cart Error

Hi Sarvagya,

 

In my application, those fields are empty.

 

Best Regards

Mahesh D.

Re: Magento cart Error

Hi @mahesh_dasari1 

 

In that case if you have empty fields, you can enter these values in Session and Cookie Management fields.

 

Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain: .domainname.com (Change with your website URL)
Use HTTP Only: Yes
Cookie Restriction Mode: No

 

I hope it will work for you.

 

Thanks

 

If my answer is useful, please Accept as Solution & give Kudos

Re: Magento cart Error

Hi Pankaj,

 

I have updated the fields with details like domain name etc..

 

but still, the issue persists. 

 

will the billing address and Credit card address cause this type of issue?

 

Regards

Mahesh D.