Creating order including custom options programmatically (Magento 1)

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

Loading a model without using IDs (Magento 1)

Sometimes there is no id available for loading a model. If thats the case, the following code might help out. It loads a collection by an attribute like name or sku.

Afterwards, it is possible to iterate over the…

Getting the status of every product in the database using MySQL (Magento 1)

The following MySQL query returns the status of every product in the Magento database.

Status 1: active Status 2: not active