Magento get order details : If you are working with magento order and looking for order details you can load order in two ways –
- Order – Load By Increment Id
- Order – Load By Entity Id
You can use either method to load order in magento. We are going to explain the magento order details with example.
Magento get order details
We will explain both methods to load order detials. Let us start one by one. First let us go with entity id ie. real order id –
Magento load order detail by Order Id (Entity id)
If you know real order id ie. entity id you can load order detail as below-
Load Order by Order Id :
|
Magento load order detail by Order Increment Id
If you know real order increment id you can load order detail as below-
Load Order by Increment Id :
|
Tip : You can get real order id from order increment id.
Magento get order items collection
Let us get order items collection from above order details-
Get Order Items Detail:
|
Magento get Order Id From Increment Id
You can get magento real order id from increment id as below-
Get Real Order Id From Increment Id:
|
-More Details From Order-
Let us have a look on other details from magento order –
Magento get Order Status
You can get order status in magento as below –
Get Order Status :
|
Magento get Shipping And Billing Address From Order
You can get Shipping And Billing Address From Order in magento as below –
Get Shipping And Billing Address From Order :
|
Magento get Shipping Method From Order
You can get Shipping Method from order in magento as below –
Get Shipping Method from Order:
|
Magento get Payment Method From Order
You can get Payment Method from order in magento as below –
Get Payment Method from Order:
|
Note : The above method will return payment method title. To get payment method code use $paymentMethod = $order->getPayment()->getMethodInstance()->getCode();
Revisions
- March 31, 2016 @ 14:59:37 [Current Revision] by admin
- March 31, 2016 @ 14:59:37 by admin
- March 31, 2016 @ 14:58:50 by admin
Revision Differences
There are no differences between the March 31, 2016 @ 14:59:37 revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.