How To Creat cron script in Magento

Some friends don’t know how to creat cron script in magento.Creating Magento cron script is very simple thing. First of all we have to create the module, (I hope that you know how to create magento module) and add in config.xml file next code:


        
            
                0 1 * * *
                birthday/observer::sendBirthayEmail
            
        

Next step, we have to create model file observer.php (in folder model) with method sendBirthayEmail [Read more...]

How to get all active magento payment modules

This code bellow will get you all active Magento payment modules. This example below return an array which you can use to create drop down menu or something else in Magento’s front-end or admin sections. [Read more...]

Magento FirePHP extension

FirePHP is Firefox add-on that enables you to log to your Firebug Console, which makes it great debugging tool for any web developer. I’m using it, like it and can’t live without it for some time now  So here’s nicely packed Magento FirePHP extension, I believe you’ll be seeing it at Magento Connect in a while. [Read more...]

Magento error:Method Varien_Object::__tostring() cannot take arguments

When you transfer magento data, you maybe notice the fatal erro,you can resolve the problem by the method.

Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php

when trying to install Magento on PHP 5.3, do not fear, here is the fix:

File: /lib/Varien/Object.php (Line 484)
[Read more...]

How To Solve Magento Layered Navigation Indices Execution Time Exceeded

When I’m trying to “Refresh Layered Navigation Indices” in System > Cache Management (ver. 1.4.1),but I get this errors like this “Fatal error: Maximum execution time of 30 seconds exceeded in . . . /lib/Zend/Db/Statement.php on line 123 “.

There are two ways to solve the error:

1. Execution time is set in php.ini file on your server.
Set in php.ini max_execution_time = 18000. [Read more...]

How To Reset Magento Admin Password

Sometimes you maybe foget the password of Magento Admin, don’t worry now.I intro you a way to reset magento admin password now.

It seems like the password must be typed and not copy/paste at least on the install part. [Read more...]