Magento Themes and Magento Extensions


Posted on January 30th, 2015 | Posted by admin

While I’m confident that many people in the Magenosphere have figured this one out, it took a whole Saturday night and part of my soul for me to achieve it. Hopefully, by presenting this code here, I can save you from the pain I endured

Creating The Connection

To create your connection, create a custom module and add the following to your config.xml. The code below is the bare minimum needed to get the external database connection working.

<?xml version="1.0"?>

Creating sitemap in Magento

Posted on December 9th, 2014 | Posted by admin

1. How to create Google sitemap in Magento by myself ?

Sitemap for most people is understandable and all of us have heard of it, nevertheless, it is worth to speak in few words about its meaning. Well, sitemap is nothing else than one of the easiest sitemap diretectors as well as aims to create special points which will make the user follow them and in the effect of this action filter unnecessary information as to get to the desired source. Basic sitemap function are few XML files, introducing URL links list which contains all information as like last update and its frequency. Considering that, browsers become intelligent devices which easily function at any Internet websites. It is not rare to hear Google Sitemap term but the scheme for XML map protocole is not combined only with Google. Hence, it may be used with different places, but it comes of Google Webmaster Tools and Yahoo! Site Explorer.

2. How to create sitemap ? Step-by-step.

The very first thing that has to be done is to create sitemap file in Magento as this contains basic element which informs Magento platform about the sitemap name and location. Following, it is necessary to log in the administration panel and search for Cataloque -> Google Mapsite and then check if the source file has been saved and if it’s already active. For example, we are interested with creating sitemap for URL:


Posted on April 22nd, 2013 | Posted by admin

When a customer views their cart, each product that they have added will be listed. By default, Magento provides info for each product, e.g. name, image, quantity, price. Customers can change the quantity in the text box and submit the “Update Shopping Cart” button. That is a lot of effort for the user, we want to make this process as smooth as possible.

We can make it easier by adding +1 and -1 links to change the quantity of each item. We will do this with some very simple JavaScript which takes the current value and adjusts it. Once this has been done, we submit the form through JavaScript to reduce customer effort.

In my implementation I have used images for the links, but obviously you could use text, e.g (↑ ↓). The following two code snippets should surround the input quantity box on the shopping cart/basket page:

In Magento, How to display static block in phtml file

Posted on March 23rd, 2013 | Posted by admin

In Magento, you can easily display the different static blocks in each pages. First you need to create static block, for these just Login into site admin end goto CMS->Static Blocks.

Click Add New Block button and fill the required fields and finally save it. Here you need to note the Identifierthat need to be input in below code to display block in individual pages.

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_cms_block_identifier')->toHtml() ?>

Creating Block from controller in Magento

Posted on December 31st, 2012 | Posted by admin

There are two types of blocks can be created in Magento

a) Structural Block: This block usually contains the attribute ‘as’ with block tag through which the application will communicate with designated area.

b) Content Block: These are the blocks that produces actual content inside each structural block. It seems like normal template file that are used to show particular data on the page.

Most of the time a programmer needs to create a structural block and need to show it into the content area of the page. Here are the code you need to write for it.

Page 1 of 212»