When I placed order from checkout page with money order
. User get redirected to empty cart page instead of success page.
I am using one step checkout in website.
checkoutmagento2onestepcheckout
When I placed order from checkout page with money order
. User get redirected to empty cart page instead of success page.
I am using one step checkout in website.
Best Answer
Here is a temporary fix, it is not as per magento 2 standard. But as there is some existing issue with session in magento 2 and I have seen many of people facing same issue. I am sharing this temporary fix. Soon, I will update you with Correct answer.
Under vendor controller
Magento\Checkout\Controller\Onepage
opensuccess.php
file\vendor\magento\module-checkout\Controller\Onepage\Success.php
Just comment this line of code:
// return $this->resultRedirectFactory->create()->setPath('checkout/cart');
OR
you can create an observer for
Success.php
and custamize success controller.