Archive for the ‘Magento’ Category

Magento Modules

Posted: August 11, 2011 in Magento, PHP

Magento consists of modules and as a result modules are the core of Magento. When you consider every action that takes place in Magento both Front/Back-end, they all go through a module.  Modules act as containers for one or more of the following : Settings, Database schemas,   rendering objects, Utility helpers, data models, or action controllers.Modules can be made up of all six of these or just one.

Magento has come up with a way to have a well designed code base and still have it extendable by creating Code Pools which are folders/directories that contain modules in Magento and they consist of three code pools local, community and core. All custom made modules you develop can be installed in the local code pool, all modules distributed with the base  Magento are in the core code pool and the community code pool was initially for third party modules but they can now be installed on both local and community.

Models are also a very important aspect of Magento as they are the muscles. They mainly help with moving data from the database to the program itself and they are also responsible for manipulating the data.

Blocks help with Magento’s templating scheme. They are a HTML and PHP mixed file with phtml extension and each block controls one template file. All blocks extend the base class Mage_Core_Block_Template which extends Mage_Core_Block_Abstract.

Controllers in Magento are the starting point for all the business logic. Controllers extend the base class Mage_Core_Controller_Varien_Action which has three important classes :

  • dispatch($action)
  • preDispatch()
  • postDispatch()
Helpers are pretty much standard in every thing you do or find and the same is applied to Magento as they are a way to restructure an existing body of code out of the core classes.
The two major methods of helpers to look out for are :
  1. __ (two underscores)
  • This method is a translation helper
  1. htmlEscape
Config files
There are three different config files available (config.xml, system.xml and convert.xml) and they are found in the etc folder under the main directory all of which are XML. config.xml is the only config file that directly affects your modules behavior.
Advertisements

Magento

Posted: April 19, 2011 in Development, Magento, PHP

Magento is an Ecommerce platform aimed at businesses who want to take it online. Magento is recognized as one of the best Ecommerce solutions available backed by a company called Varien. The software runs on the Apache/MySQL/PHP platform. Magento is considered as one of the best solutions because :

  • They are compatible with most gateways
  • You can use almost any shipment with it
  • You can manage multiple stores on one backend
  •  Support is provided free
  • User friendly Interface
  • Create stores in different languages
  • One page checkout, guest checkout
  • Support for multiple currencies
  • Cross-sells, up-sells and related items
  • RSS Feeds for new Products
  • Built-in product review feature

Magento offer two solution, the Community Edition and Enterprise Edition. The Community edition is free but has limited features whereas the Enterprise edition has more features but has A yearly license fee.

Magento enables you to have full control over the content, look & feel, is flexible and robust. The platform comes with the best set of features out of the box making it easier for merchants to manage.Magento also offers multiple languages and multiple currencies making it a worldwide tool that is easy to understand and use.

integration with Google analytics, and some reporting features to help better promote your products.

Magento is a leading Ecommerce solution for online commerce because of its rich feature and capabilities to make online shopping easier for both the customer and the stores owner. Magento comes with a lot of features integrated and is easy to use.
With multiple languages, currencies,  free support, one page checkouts and a user friendly interface they have a recipe for success.
The software is remarkable and the costs to use it are not to pricy