I would like to test order success page.
when testing Magento redirects to cart page after reloading the page, I have to make an order again.
How can I stop this redirection?
I'm using 1.9.3.4.
Hello @tvgarden ,
Can you please provide more information about this issue?
--
If my answer is useful, please Accept as Solution & give Kudos
You need to do following things.
1. open this file.
app/code/core/Mage/Checkout/controllers/OnepageController.php
2. find this function
public function successAction()
arround line no.275
3. Now put the comment this code.
$session = $this->getOnepage()->getCheckout();
if (!$session->getLastSuccessQuoteId()) {
$this->_redirect('checkout/cart');
return;
}
$lastQuoteId = $session->getLastQuoteId();
$lastOrderId = $session->getLastOrderId();
$lastRecurringProfiles = $session->getLastRecurringProfileIds();
if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) {
$this->_redirect('checkout/cart');
return;
}
$session->clear();
4. Now you can access success page by this way.
http://magentourl/checkout/onepage/success