You are viewing an old revision of this post, from March 31, 2016 @ 14:58:50. See below for differences between this version and the current revision.

Magento – Get order detail from order id

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 :

 

1

2

3

$orderId = 111;

// this is entity id

$order = Mage::getModel('sales/order')->load($orderId);

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 :

 

1

2

3

$orderIncrementId = 223;

// this is entity id

$order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);

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:

 

1

2

3

4

5

6

$orderItemsCollection = $order->getItemsCollection();

foreach $orderItemsCollection as $item){

    $productId = $item->Id();

    $productSku = $item->sku();

    $productName = $item->getName();

}

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:

 

1

2

3

4

//real order id ie. entity id

$orderId = Mage::getModel('sales/order')

             ->loadByIncrementId($incrementId)

             ->getEntityId();


 

 

-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 :

 

1

2

3

4

$orderId = 111;

// this is entity id

$order = Mage::getModel('sales/order')->load($orderId);

$status = $order->getStatusLabel();

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 :

 

1

2

3

4

5

$orderId = 111;

// this is entity id

$order = Mage::getModel('sales/order')->load($orderId);

$shippingAddress = $order->getShippingAddress();

$billingAddress = $order->getBillingAddress();

Magento get Shipping Method From Order

You can get Shipping Method from order in magento as below –

Get Shipping Method from Order:

 

1

2

3

4

$orderId = 111;

// this is entity id

$order = Mage::getModel('sales/order')->load($orderId);

$shippingMethod = $order->getShippingMethod();

Magento get Payment Method From Order

You can get Payment Method from order in magento as below –

Get Payment Method from Order:

 

1

2

3

4

$orderId = 111;

// this is entity id

$order = Mage::getModel('sales/order')->load($orderId);

$paymentMethod = $order->getPayment()->getMethodInstance()->getTitle();

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

March 31, 2016 @ 14:58:50Current Revision
Content
Unchanged: <p>Unchanged: <p>
Unchanged: Magento get order details : If you are working with magento order and looking for order details you can load order in two ways &ndash;Unchanged: Magento get order details : If you are working with magento order and looking for order details you can load order in two ways &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <ul>Unchanged: <ul>
Unchanged: <li>Unchanged: <li>
Unchanged: Order &ndash; Load By Increment IdUnchanged: Order &ndash; Load By Increment Id
Unchanged: </li>Unchanged: </li>
Unchanged: <li>Unchanged: <li>
Unchanged: Order &ndash; Load By Entity IdUnchanged: Order &ndash; Load By Entity Id
Unchanged: </li>Unchanged: </li>
Unchanged: </ul>Unchanged: </ul>
Unchanged: <p>Unchanged: <p>
Unchanged: You can use either method to load order in magento. We are going to explain the magento order details with example.Unchanged: You can use either method to load order in magento. We are going to explain the magento order details with example.
Unchanged: </p>Unchanged: </p>
Unchanged: <h2>Unchanged: <h2>
Unchanged: Magento get order detailsUnchanged: Magento get order details
Unchanged: </h2>Unchanged: </h2>
Unchanged: <p>Unchanged: <p>
Unchanged: 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 &ndash;Unchanged: 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 &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento load order detail by Order Id (Entity id)Unchanged: Magento load order detail by Order Id (Entity id)
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: If you know real order id ie. entity id you can load order detail as below-Unchanged: If you know real order id ie. entity id you can load order detail as below-
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Load Order by Order Id :Unchanged: Load Order by Order Id :
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = 111;Unchanged: $orderId = 111;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento load order detail by Order Increment IdUnchanged: Magento load order detail by Order Increment Id
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: If you know real order increment id you can load order detail as below-Unchanged: If you know real order increment id you can load order detail as below-
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Load Order by Increment Id :Unchanged: Load Order by Increment Id :
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderIncrementId = 223;Unchanged: $orderIncrementId = 223;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; loadByIncrementId( $orderIncrementId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; loadByIncrementId( $orderIncrementId);
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <p>Unchanged: <p>
Unchanged: <b>Tip</b>&nbsp;: You can get real order id from order increment id.Unchanged: <b>Tip</b>&nbsp;: You can get real order id from order increment id.
Unchanged: </p>Unchanged: </p>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get order items collectionUnchanged: Magento get order items collection
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: Let us get order items collection from above order details-Unchanged: Let us get order items collection from above order details-
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Order Items Detail:Unchanged: Get Order Items Detail:
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 5Unchanged: 5
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 6Unchanged: 6
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderItemsCollection = $order-&gt;getItemsCollection();Unchanged: $orderItemsCollection = $order-&gt;getItemsCollection();
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: foreach $orderItemsCollection as $item){Unchanged: foreach $orderItemsCollection as $item){
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productId = $item-&gt;Id();Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productId = $item-&gt;Id();
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productSku = $item-&gt;sku();Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productSku = $item-&gt;sku();
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productName = $item-&gt;getName();Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;$productName = $item-&gt;getName();
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: }Unchanged: }
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get Order Id From Increment IdUnchanged: Magento get Order Id From Increment Id
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: You can get magento real order id from increment id as below-Unchanged: You can get magento real order id from increment id as below-
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Real Order Id From Increment Id:Unchanged: Get Real Order Id From Increment Id:
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: //real order id ie. entity idUnchanged: //real order id ie. entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = Mage::getModel( &#39;sales/order&#39;)Unchanged: $orderId = Mage::getModel( &#39;sales/order&#39;)
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&gt;loadByIncrementId( $incrementId)Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&gt;loadByIncrementId( $incrementId)
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&gt;getEntityId();Unchanged: &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&gt;getEntityId();
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <hr />Unchanged: <hr />
Unchanged: <center>Unchanged: <center>
Unchanged: &nbsp;Unchanged: &nbsp;
 Added: <p>
 Added: &nbsp;
 Added: </p>
Unchanged: <h3>Unchanged: <h3>
Unchanged: -More Details From Order-Unchanged: -More Details From Order-
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: Let us have a look on other details from magento order &ndash;Unchanged: Let us have a look on other details from magento order &ndash;
 Added: </p>
 Added: <p>
 Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;Unchanged: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: </center>Unchanged: </center>
 Added: <p>
 Added: &nbsp;
 Added: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;Unchanged: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <hr />Unchanged: <hr />
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get Order StatusUnchanged: Magento get Order Status
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: You can get order status in magento as below &ndash;Unchanged: You can get order status in magento as below &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Order Status :Unchanged: Get Order Status :
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = 111;Unchanged: $orderId = 111;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $status = $order-&gt;getStatusLabel();Unchanged: $status = $order-&gt;getStatusLabel();
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get Shipping And Billing Address From OrderUnchanged: Magento get Shipping And Billing Address From Order
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: You can get Shipping And Billing Address From Order in magento as below &ndash;Unchanged: You can get Shipping And Billing Address From Order in magento as below &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Shipping And Billing Address From Order :Unchanged: Get Shipping And Billing Address From Order :
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 5Unchanged: 5
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = 111;Unchanged: $orderId = 111;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $shippingAddress = $order-&gt;getShippingAddress();Unchanged: $shippingAddress = $order-&gt;getShippingAddress();
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $billingAddress = $order-&gt;getBillingAddress();Unchanged: $billingAddress = $order-&gt;getBillingAddress();
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get Shipping Method From OrderUnchanged: Magento get Shipping Method From Order
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: You can get Shipping Method from order in magento as below &ndash;Unchanged: You can get Shipping Method from order in magento as below &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Shipping Method from Order:Unchanged: Get Shipping Method from Order:
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = 111;Unchanged: $orderId = 111;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $shippingMethod = $order-&gt;getShippingMethod();Unchanged: $shippingMethod = $order-&gt;getShippingMethod();
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <h3>Unchanged: <h3>
Unchanged: Magento get Payment Method From OrderUnchanged: Magento get Payment Method From Order
Unchanged: </h3>Unchanged: </h3>
Unchanged: <p>Unchanged: <p>
Unchanged: You can get Payment Method from order in magento as below &ndash;Unchanged: You can get Payment Method from order in magento as below &ndash;
Unchanged: </p>Unchanged: </p>
Unchanged: <h4>Unchanged: <h4>
Unchanged: Get Payment Method from Order:Unchanged: Get Payment Method from Order:
Unchanged: </h4>Unchanged: </h4>
Unchanged: <table id="goverView">Unchanged: <table id="goverView">
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Deleted: <textarea data-settings="dblclick" readonly="readonly" ></textarea>Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="hide">Unchanged: <td data-settings="hide">
Unchanged: <p>Unchanged: <p>
Unchanged: 1Unchanged: 1
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 2Unchanged: 2
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 3Unchanged: 3
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: 4Unchanged: 4
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: $orderId = 111;Unchanged: $orderId = 111;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: // this is entity idUnchanged: // this is entity id
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);Unchanged: $order = Mage::getModel( &#39;sales/order&#39;)-&gt; load($orderId);
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: $paymentMethod = $order-&gt;getPayment( )-&gt;getMethodInstance() -&gt;getTitle();Unchanged: $paymentMethod = $order-&gt;getPayment( )-&gt;getMethodInstance() -&gt;getTitle();
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>
Unchanged: <p>Unchanged: <p>
Unchanged: <b>Note</b>&nbsp;: The above method will return payment method title. To get payment method code use&nbsp;<em> $paymentMethod = $order-&gt;getPayment( )-&gt;getMethodInstance() -&gt;getCode();</em>Unchanged: <b>Note</b>&nbsp;: The above method will return payment method title. To get payment method code use&nbsp;<em> $paymentMethod = $order-&gt;getPayment( )-&gt;getMethodInstance() -&gt;getCode();</em>
Unchanged: </p>Unchanged: </p>

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply