Created
October 22, 2015 08:16
-
-
Save enru/153e62aa654284013645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enru@v1:~$ git diff app/code/core/Mage/Checkout/controllers/OnepageController.php | |
| diff --git a/app/code/core/Mage/Checkout/controllers/OnepageController.php b/app/code/core/Mage/Checkout/controllers/OnepageController.php | |
| index c1ea4a5..ab920ee 100644 | |
| --- a/app/code/core/Mage/Checkout/controllers/OnepageController.php | |
| +++ b/app/code/core/Mage/Checkout/controllers/OnepageController.php | |
| @@ -211,6 +211,10 @@ class Mage_Checkout_OnepageController extends Mage_Checkout_Controller_Action | |
| public function successAction() | |
| { | |
| $session = $this->getOnepage()->getCheckout(); | |
| +//test | |
| +$session->setLastSuccessQuoteId(12936); | |
| +$session->setLastQuoteId(12936); | |
| +$session->setLastOrderId(5895); | |
| if (!$session->getLastSuccessQuoteId()) { | |
| $this->_redirect('checkout/cart'); | |
| return; | |
| @@ -224,7 +228,8 @@ class Mage_Checkout_OnepageController extends Mage_Checkout_Controller_Action | |
| return; | |
| } | |
| - $session->clear(); | |
| + //$session->clear(); | |
| + | |
| $this->loadLayout(); | |
| $this->_initLayoutMessages('checkout/session'); | |
| Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId))); | |
| enru@v1:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment