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.

Adding a static block to the sidebar (Magento 1)

Using the folowing layout update, you can add a static block to the left sidebar:

How to know if you are on the product or category page (Magento 1)

YOu want to know if you are on either the product or category page? The following code might help:

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

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

Getting custom options of ordered items on success page (success.phtml) (Magento 1)

Using the folowing code you can get the custom options of the ordered items on the Magento success page.