Getting products with or without custom options using SQL (Magento 1)

To get all products that do not have custom options, simply run the following SQL query:

To get all products that do have custom options, remove the “NOT” from the above query.

Creating order including custom options programmatically (Magento 1)

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

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.

Getting custom options of an order item (Magento 1)

Using the following code, you can get the custom options from a Magento order item:

Making custom options available in quote in admin area (Magento 1)

Sometimes, when adding custom options to a quote in ther admin area, the custom options are not available. To avoid that problem, simply add the custom options to your modules config.xml, like this:

Getting selected custom options of a cart item (Magento 1)

Use the below code to figure out what custom option was selected by the customer for a cart item: