Solving the “Invalid backend model specified: catalog/attribute_backend_customlayoutupdate” problem (Magento 1)

Run the following query: SELECT * FROM eav_attribute WHERE ( `attribute_id` LIKE ‘%stomlayoutupdate%’ OR `entity_type_id` LIKE ‘%stomlayoutupdate%’ OR `attribute_code` LIKE ‘%stomlayoutupdate%’ OR `attribute_model` LIKE ‘%stomlayoutupdate%’ OR `backend_model` LIKE ‘%stomlayoutupdate%’ OR `backend_type` LIKE ‘%stomlayoutupdate%’ OR `backend_table` LIKE ‘%stomlayoutupdate%’ OR `frontend_model` LIKE…

Fixing Invalid backend model specified: catalog/attribute_backend_customlayoutupdate (Magento 1)

First, run this query:

Write down the attribute_ids returned by the query, then run the following query:

Fertig!

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.

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.

Deleting upsell products directly in the database (Magento 1)

Once saved, upsell products can not be removed again easily. Using the following MySQL script, you can delete Magento upsell products from the database.

Changing customer email addresses in Magento

When testing new features locally on your development machine, it is advisable to change the customers’ email addresses. You can use the following script for this purpose: Warning: Never execute these statements on a production system!

Now open an…

Changing Magento store email addresses in a local installation

Warning: Never execute these statements on a production system! The following query generates an update script according to a pattern you define. In this example the pattern is “your-domain.com”. Replace it with your own domain.

The resulting script might…