Hello all ,

I have planned to write about wordpress. just have a look on it’s features

According to wordpress

“WordPress is a powerful semantic publishing platform, and it comes with a great set of features designed to make your experience as a publisher on the Internet as easy, pleasant and appealing as possible. We are proud to offer you a freely distributed,standards-compliantfastlight and free content management system, with sensible default settings and features, and an extremely customizable core.”

Reference – http://codex.wordpress.org/WordPress

Magento basics to know

Start Developing with Magento

 

Magento Basics

1. What is magento ?

2. How to install magento & sample data?

3. How to set design/ theme ?

4. How multistore /Multiwebsite work?

5.  What is configuration  scope . how to set configuration value?

6. What DB Architecture magento use?

7. What is entity ? How to create attribute for entity?

8. Type of product ? Create each type of product?

9. Describe Catalog Navigation?  Product purchase process?  Add to wishlist, compare & email to friend?

10. Order processing, Shipment, invoice, memo. etc.

11. Create promotion rules for cart & catalog.

12. Product import export.

13. Use of ACL.

14. Cache management

Learn to Start Developing.

How magento MVC works ?

Type of layout handler & methodology explanation of terms.

 

 

  1. Create a module.

a)      Declare a module.

b)      Create a router & load layout from controller.

c)      Create Block.

d)      Create an helper

e)      Create Model

f)       Create Installation script

g)      Create system config & api

  1. Create an event observer.
  2. Override  Core Blocks

a)      Override controller action

b)      Override Blocks

c)      Override Model

 

Thanks.

Magento add new attribute to customer with source model

Place this script in setup and replace “attribute_code_here” with your attribute code

<?php
$installer = $this;
$installer->startSetup();

$setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’);

$entityTypeId     = $setup->getEntityTypeId(‘customer’);
$attributeSetId   = $setup->getDefaultAttributeSetId($entityTypeId);
$attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId);

$setup->addAttribute(‘customer’, ‘attribute_code_here’, array(
‘input’         => ‘select’,
‘type’          => ‘int’,
‘source’          =>’eav/entity_attribute_source_boolean’,
‘label’         => ‘attribute label here’,
‘visible’       => 1,
‘required’      => 0,
‘user_defined’ => 1,
));

$setup->addAttributeToGroup(
$entityTypeId,
$attributeSetId,
$attributeGroupId,
‘attribute_code_here’,
‘999’  //sort_order
);

$oAttribute = Mage::getSingleton(‘eav/config’)->getAttribute(‘customer’, ‘attribute_code_here’);
$oAttribute->setData(‘used_in_forms’, array(‘adminhtml_customer’));
$oAttribute->save();

$setup->endSetup();

Cheers . Thanks