cancel
Showing results for 
Search instead for 
Did you mean: 

Test Order Success page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Test Order Success page

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.

2 REPLIES 2

Re: Test Order Success page

Hello @tvgarden ,

 

Can you please provide more information about this issue?

 

--

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

Re: Test Order Success page

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

Was my answer helpful? You can Click Kudos/Accept As Solution.
200+ professional extensions for M1 & M2 with free lifetime updates!