Sunday, November 27, 2011

Magento: Attribute feature

Magento Class Instances  and Attribute Value
  1. getData = Relevant Data from object
  2. getSingleton = If you are using getSingleton you are calling already instance object
  3. getModel = Instance of Class Ex: $product = Mage::getModel('catalog/product');
  4. getChildHtml = Calling Block of Block of Block
  5. $attribute = $_product->getResource()->getAttribute('your_attribute_id'); (Get Attribute Collection) 
  6. $attribute->getAttributeType()  (Get Attribute type)
  7. $attribute->getFrontendLabel()  (Get Attribute Label)
  8. $attribute->getDefaultValue()    (Get Attribute Value)
  9. $attribute->getIsVisible()          (Get Attribute is Visible)    
  10. $attribute->getIsRequired()      (Get Attribute is Required)

No comments:

Post a Comment

Thankyou for your Comments

LinkWithin

Blog has moved, searching new blog...