17 Dec

Quick script to export Magento categories with IDs

If you are after a quick method to get all the category ID's for your categories for some Excel lookups (for new data imports), then this quick PHP script should help you out: <?php define('MAGENTO', realpath(dirname(__FILE__))); require_once MAGENTO . '/app/Mage.php'; Mage::app(); $category = Mage::getModel('catalog/category'); $tree = $category->getTreeModel(); $tree->load(); $ids = $tree->getCollection()->getAllIds(); if ($ids) { $file … Continue reading

13 Dec

Speeding up the Magento admin

I've noticed a few people discussing this issue on the Magento Commerce forum, so it might be worthwhile for us to offer a level of assistance (other than the fast Magento hosting we provide already from sonassi hosting). Downloading the following file, SlowManageCategories.zip patch. Extract the zip file and copy Sonassi_All.xml to your ./app/etc/modules/ directory. … Continue reading

27 Nov

Migrate a Magento store without SSH access

We were recently asked to migrate a store to our Sonassi Hosting platform, but the client did not have SSH access to his previous hosting account. So we quickly knocked up a script to take care of the backup process <?php $xml = simplexml_load_file("app/etc/local.xml"); $db_host = (string)$xml->global->resources->default_setup->connection->host; $db_name = (string)$xml->global->resources->default_setup->connection->dbname; $db_username = (string)$xml->global->resources->default_setup->connection->username; $db_password = … Continue reading

6 Nov

Fatal error: Call to a member function children() on a non-object

Maybe you would be interested in a better way to integrate Magento and WordPress if you are having difficulties with the below. If you are using Lazzymonks WordPress integration extension for Magento and experience the following error, here is the resolve. Fatal error: Call to a member function children() on a non-object in app/code/community/Mage/Blog/Model/Layouts.php There … Continue reading

24 Sep

Magento Version 1.3.2.4 Security Update

As of Wednesday September 23, 2009, Varien have released a security update covering XSS vulnerabilities. We recommend all users upgrade to the latest version to protect their stores - but please remember to backup prior to an upgrade!. Backing up your store is extremely quick and easy, there are two methods, manually via Sonassi domain … Continue reading

3 Jul

Magento: mini_sendmail and Zend_Mail incompatibility Version II.

This article is now deprecated and the issue has been resolved without changes to core code after our service change. We have recently spotted an issue after traversing our Apache sendmail application to mini_sendmail (read more about the change). In Magento's mail headers, the recipient and sender details have both the email address and respective … Continue reading