- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2019
07:22 AM
02-08-2019
07:22 AM
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.
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019
08:55 AM
02-10-2019
08:55 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019
03:43 AM
03-06-2019
03:43 AM
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!
200+ professional extensions for M1 & M2 with free lifetime updates!