Calling a stored procedure from Magento

Using the code below you can call a stored procedure directly from Magento.

Changing the admin route for security reasons (Magento 1)

One step towards making your shop more secure is to change the default admin route from http://www.your-shop.com/admin to something more secure and less guessable. The route must be changed in app/etc/local.xml.

After adding that to your app/etc/local.xml file, clear…

Getting products from a category (Magento 1)

The following code returns all products from within a certain category in a collection.

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.