Reputation: 682
On review(summary) step in checkout I need to get data of current order in Block/Abstract How I can get this?. For example I need address, which customer select in billing/shiping step. Thanks
Upvotes: 2
Views: 7684
Reputation: 1646
$checkout = Mage::getSingleton('checkout/session')->getQuote();
$billing = $checkout->getBillingAddress();
This way you can get your Billing as well as shipping address wherever you like to display at cart.
Upvotes: 2
Reputation: 5381
If you are on checkout page then you will use this code to get current order data, actually before order is placed all customer info is stored in quote object.
So you can get quote object by this code $this->getOnepage()->getQuote();
or
Mage::getSingleton('checkout/session')->getQuote()
Upvotes: 2