cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

SOLVED

Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

I am using Magento 1.9.2.3, after successful payment page redirect to https://domain.in/checkout/cart/  Screenshot : https://snipboard.io/G5L4ej.jpg

 

Error : 

Shopping Cart is Empty

 

How to solve this issue?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

Hi @Aveeva 

 

Replace the code below  in line no. 41 in app/code/core/Mage/Core/Model/Cookie.php

 

const SAMESITE = ';samesite=None; Secure';

 

Replace  the code below in line no. 37  in app/design/frontend/base/default/template/page/js/cookie.phtml 

 

Mage.Cookies.path = '<?php echo Mage::helper('core')->jsQuoteEscape($this->getPath()) ?>;samesite=None; Secure';


I think that is enough for samesite cookie. No need to do more amendments in the other file if you did not enable page cache.

 

If the issue is because of samesite cookie attribute then the issue should be fixed with this changes.

 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

43 REPLIES 43

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

Hi @Aveeva It may be due to samesite cookie attribute.

Has the Order been successfully placed and payment done?
Which payment method are you using?

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

Hi @Aveeva It may be due to samesite cookie attribute.

Has the Order been successfully placed and payment done?
Which payment method are you using?

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

@Madhu Rajawat  I am using CCAvenue Payment gateway, payment done

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

Ok @Aveeva 

Same issue I was facing with a website. It was due to cookie new attribute samesite set Lax. 

With the updating 

sameite=none

Issue was fixed.

 

You can try to check with this if it helps.

 

Have you Set samesite cookie? What is a set value of samesite attribute cookie on your site?


You can check the value of the cookie in the Application tab. 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

@Madhu Rajawat  Where i can update 

samesite=none

 

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

Ok @Aveeva So you didn't have integrated it so It is adding By default sameite=lax
You need to add this attribute to your site.
Can you give your website URL or screenshot of cookie samesite value set on your site

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

@Madhu Rajawat  This is my website

 

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

@Madhu Rajawat  FYI My  PHP Version 5.6.40

Re: Magento 1.9.2.3 : After successful Payment "Shopping Cart is Empty" Error

@Madhu Rajawat  Is my site configured right? or do i need to change anything?