Removing Test orders from Magento
If you want to do this manually and not pay (via a extension) then use the following script on your database. Please make sure you back up your database first, I take no responsibility for the overall result, this script worked for me on version 1.4.0.1: SET FOREIGN_KEY_CHECKS=0; TRUNCATE `sales_order`; TRUNCATE `sales_order_tax`; TRUNCATE `sales_order_datetime`; TRUNCATE [...]
Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin()
I upgraded Magento to 1.4.0.0 to 1.4.0.1 and got the following error: Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin() Everything inside /var/sessions/ and /var/cache and (if it exists) /app/code/core/Zend/Cache/ must be deleted.
var _gaq undefined – Magento
I came across this javascript error when updating a instance of Magento to version 1.4 and Google Analytics “var _gaq is undefined” In the ga.php file located under /app/code/core/Mage/GoogleAnalytics/Block add the following line of code before _gaq.push javascript “var _gaq = _gaq || [];” – about line 179 This will remove the error. I still [...]
toolbar.phtml -> Magento 1.4 error
Came across this error in toolbar.phtml for Magento 1.4: Warning: Invalid argument suppplied for foreach() line 51. Fix is available from here (this is only a fix, it doesn’t solve the problem – The paging is removed). References: http://www.sonassi.com/knowledge-base/magento-1-4-install-errors/
Enabling Sales Order Notification in Magento
Very helpful post there that enables sales order notifications to the shop admin email address. Dont’s use the Bcc option System Configuration -> Sales menu, you have to send a copy of the email to another email address. References: http://nik.chankov.net/2009/10/28/adding-notification-when-new-order-arrives-magento/
Bluehost wont allow gmail SMTP connections
According to bluehost, you cannot send emails through SMTP connections from web applications hosted on bluehost. They only allow sending through their own SMTP servers. The problem I had was trying to send emails in Magento using GMAIL (Google Apps) using the code from this forum: http://www.magentocommerce.com/boards/viewthread/1073/ The work around is that I setup a [...]


