0

Removing Test orders from Magento

Posted by Tim on March 28, 2010 in Magento, Open Source

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 [...]

Tags:

 
0

Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin()

Posted by Tim on March 20, 2010 in Magento, PHP

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.

Tags: ,

 
0

var _gaq undefined – Magento

Posted by Tim on March 1, 2010 in Open Source, PHP

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 [...]

Tags:

 
0

toolbar.phtml -> Magento 1.4 error

Posted by Tim on February 21, 2010 in Open Source

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/

Tags: ,

 
0

Enabling Sales Order Notification in Magento

Posted by Tim on February 8, 2010 in Open Source, PHP

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/

Tags: ,

 
0

Bluehost wont allow gmail SMTP connections

Posted by Tim on January 12, 2010 in Open Source, PHP

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 [...]

Tags: , ,

Copyright © 2008-2010 Tim's CodeLab Blog All rights reserved.
Desk Mess Mirrored v1.7 theme from BuyNowShop.com.