Sorting order items by SKU (Magento 1)

To display ordered products sorted by SKU in the order view, override the app/design/adminhtml/default/default/template/sales/order/view/items.phtml in your theme and replace

with

That’s it. When you open an order containing two or more products, they will now be displayed in…

Creating order including custom options programmatically (Magento 1)

Using the following code, you can create an order including custom options programmatically.

Getting orders with items that have a certain attribute set (Magento 1)

The following MySQL query returns all Magento orders that have at least one item with attribute set id 9.

Getting an orders tracking information (Magento 1)

Using the following code, you can obtain the tracking information of a Magento order.

Getting order data on success page (success.phtml) (Magento 1)

To get the order data on the Magento success page, use the following code. The key here is to create an order object and get the data from there.

Getting order items on success page (success.phtml) (Magento 1)

Use the following code to get all ordered items on the Magento success page.