Skip to content

Commit

Permalink
[impr-OpenMage#930] Order and agreement not available on checkout suc…
Browse files Browse the repository at this point in the history
…cess template

It allows to customize the success page without loading the order again
  • Loading branch information
jacquesbh authored and edannenberg committed Aug 24, 2020
1 parent b065ffd commit 9c0155c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/core/Mage/Checkout/Block/Onepage/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ protected function _prepareLastOrder()
'can_print_order' => $isVisible,
'can_view_order' => Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible,
'order_id' => $order->getIncrementId(),
'order' => $order,
));
}
}
Expand All @@ -151,6 +152,7 @@ protected function _prepareLastBillingAgreement()
'agreement_url' => $this->getUrl('sales/billing_agreement/view',
array('agreement' => $agreementId)
),
'agreement' => $agreement,
));
}
}
Expand Down

0 comments on commit 9c0155c

Please sign in to comment.