Skip to content

Commit 49abf83

Browse files
jacquesbhedannenberg
authored andcommitted
[impr-OpenMage#930] Order and agreement not available on checkout success template
It allows to customize the success page without loading the order again
1 parent 27bc06b commit 49abf83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/core/Mage/Checkout/Block/Onepage/Success.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ protected function _prepareLastOrder()
131131
'can_print_order' => $isVisible,
132132
'can_view_order' => Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible,
133133
'order_id' => $order->getIncrementId(),
134+
'order' => $order,
134135
));
135136
}
136137
}
@@ -151,6 +152,7 @@ protected function _prepareLastBillingAgreement()
151152
'agreement_url' => $this->getUrl('sales/billing_agreement/view',
152153
array('agreement' => $agreementId)
153154
),
155+
'agreement' => $agreement,
154156
));
155157
}
156158
}

0 commit comments

Comments
 (0)