Magento Themes and Magento Extensions

Magento : How add translation ability into cms page or static block ?

Posted on February 27th, 2013 | Posted by admin

As we all know magento have multi-language store. Magento use following syntax in .pthml to make text translate to multi-language which is like this :

    <?php   echo $this->__('text to translate'); ?>


    <?php   echo Mage::helper('ModuleName')->__('text to translate');  ?>

But text written in cms page or static block have not translation ability.
To make cms page or static block text compatible with translation ability we need to do some extra coding work which is like this:

We can use following directive in cms page or static block

Setting Up Your Magento Scripting Environment

Posted on February 26th, 2013 | Posted by admin

One of the things that I do quite often in Magento is write scripts to accomplish certain tasks. Mostly these tasks involve me updating prices, creating a sale, or fixing a data problem in products. The code base for Magento is heavily object orienated which makes it incredibly easy to pull in the full power of  Magento and use it in outside scripts.

However, before you dive into this you want to make sure that you do a little forethought so that you do not accidentally leave yourself open to security attacks and the like.

The first thing you want to do is determine where you are going to store all of these scripts. The first thing I would recommend is that you do not put the scripts in a spot that is accessible over the internet. This removes the possibility that your scripts will be run by someone you did not intend to since it cannot be called from a web browser.

How to resize an image in Magento

Posted on February 25th, 2013 | Posted by admin

Many times the uploaded images needs to be resized before showing in the site.

Magento has everything to do this easily.

Here is an example:


Posted on February 24th, 2013 | Posted by admin

’re in a fairly complicated upgrade of a  Magento live store and during the upgrade window, it is necessary to put up a holding page. A simple maintenance.flag file isn’t going to cut it for this process, so cutting off users at the web server is more suitable.

For this particular customer, they have a complex 3 server cluster running a single site with over 240,000 unique visitors per day, so Nginx was a more appropriate choice.


Putting up a maintenance page with a 503 header is required, but in addition to this, to make sure payment gateway IPNs can function correctly, we need to permit access to some URLs (where we do not know the source IP address), eg. PayPal or Ogone. Also, we’ll need to add our own IP address to the allow list.

enabling compression on a magento site on opensuse

Posted on February 23rd, 2013 | Posted by admin

If you’re running Magento on OpenSuse (or any platform for that matter), you can really benefit from turning on http compression, especially to remote areas or from hosts that have limited bandwidth.

There are a lot of references out there on this, but you have to sort of pull it all together on your own for this particular combination.

Verify that mod_deflate has been installed in Apache:

1. Open /etc/sysconfig/apache2.

2. Find the line that starts:


3. Verify that “deflate” is one of the modules listed (may not be in alphabetical order).

Page 1 of 41234»