Skip to content

Commit

Permalink
[impr-OpenMage#1032] Allow access to current order via registry
Browse files Browse the repository at this point in the history
  • Loading branch information
woutersamaey authored and edannenberg committed Aug 24, 2020
1 parent 98af60a commit 3e150b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Sales/Model/Service/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ public function submitOrder()
$transaction->addCommitCallback(array($order, 'place'));
$transaction->addCommitCallback(array($order, 'save'));

Mage::unregister('current_order');
Mage::register('current_order', $order);

/**
* We can use configuration data for declare new order status
*/
Expand Down

0 comments on commit 3e150b7

Please sign in to comment.