Category page loads extremely slowly (Magento 1)

If your Magento category pages are extremely slow, Magento swatches may be the culprit. Override /app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php and remove

from its original location, then insert that code immediately above the surrounding foreach loop. This can substantially improve category page load…

Fixing the Mage_Core_Model_Store::setWebsite() argument type error (Magento 1)

You might encounter the message Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given when moving your store to another server. The solution is straightforward. Run the following SQL queries to resolve the issue:

Sorting order items by SKU (Magento 1)

To display ordered products sorted by SKU in the order view, override the app/design/adminhtml/default/default/template/sales/order/view/items.phtml in your theme and replace

with

That’s it. When you open an order containing two or more products, they will now be displayed in…