Getting the front name of a route programmatically (Magento 1)

Use the ollowing code to get a routes front name:

The code will return “config”, if you add the following XML to your modules config.xml:

Getting the full country name by country code (Magento 1)

See the following example on how to get the long country name by its short code:

Loading a mail template by its name (Magento 1)

Use the below code to load a Magento transaction mail template by its name:

Getting mail template content by name (Magento 1)

Use the following code to get a mail templates content by its name:

Displaying missing image filenames during product imports (Magento 1)

The import tells you when images are missing, but does not identify which images. If you override app\code\core\Mage\Catalog\Model\Product\Attribute\Backend\Media.php and make the following changes to the addImage function, the missing images will be displayed. Find:

Change it to:

Now…

Configuring and running cron jobs (Magento 1)

To add and run a Magento cron job in your module, add the following XML to your modules config.xml:

Thats the first step. Once that was done, you have to manually or automatically run cron.php. Its in your stores…