Magento – Captcha in Magento 1.7.

Posted on September 22nd, 2014 | Posted by admin

In Magento 1.7. Captcha basically uses for security reason to prevent spam
now a days captcha in website is very much popular so magento is also one of them now
you will fing the configration for captcha in

System » Configuration » Client » Configuration client » Captcha

you will find several options there on which page you want to add the capcha code

magento themes

Magento – Upload file code

Posted on September 19th, 2014 | Posted by admin

$post = $this->getRequest()->getPost();
//var_dump($post); die;
if(isset($_FILES['file']['name']) && (file_exists($_FILES['file']['tmp_name']))) {
try {

$uploader = new Varien_File_Uploader(‘file’);
$uploader->setAllowedExtensions(array(‘pdf’,'doc’,'png’,'jpg’)); // or pdf or anything

// setAllowRenameFiles(true) -> move your file in a folder the magento way
// setAllowRenameFiles(true) -> move your file directly in the $path folder

Running PHP Scripts on CLI and Faking a Web Request

Posted on September 18th, 2014 | Posted by admin

Some times you build a PHP script that is designed to run from a web request and you want to run it on the command line. The problem is that you have used the standard PHP super globals and you would rather not refactor the script loads.

Here is a nice quick solution:

    for ($i = 1; $i < $argc; $i++) {
      $things = explode("=", $argv[$i]);
        if (false !== stripos($things[0], 'POST:')) {
             $post = str_replace('POST:', '', $things[0]);
             $_POST[$post] = $things[1];

Request and Post parameters in controllers magento

Posted on September 15th, 2014 | Posted by admin

To get the parameters magento passed in the controllers use the following code.

Retrieve URI parameters.

$params = $this->getRequest()->getParams();
$id = $params["id"];
$name = $params["name"];

Retrieve Post parameters.

$id =$this->getRequest()->getPost("id");
$name = $this->getRequest()->getPost("name");

Bizarre – Responsive Magento Theme

Posted on September 13th, 2014 | Posted by admin

Bizarre – Responsive Magento Theme

Since we are authors of just theme, we do not provide support which concerns any 3-rd party extensions, including modules that comes with theme.
Support is provided only via ticket system. All ticket are handled in queue, that’s why the reply make take up to two working days. Be patience please. We recommend to create ticket with maximum information about issue. In that case you will get answer faster.