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

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.