Posted by: james | September 18, 2009


write about all the tabs of product…
and also search about all the data..
to see all attribute go to eav/Model/Entity/Setup.php
to use any data in block form controller do this..
require_once “Mage/Adminhtml/controllers/Catalog/ProductController.php”;
class Form_data_ProductController extends Mage_Adminhtml_Catalog_ProductController
public function newAction()

to access any magento file in simple php file, menas outside of nagento..

to add any custom element renderer in form in admin panel, menas if you have added one attribute for file

uploading and now you want to add one checkbox then it requrire custom renderer so for that you have to give

one new line in your script and it will be frontend_input_renderer so for that entity name is input_rendere

(to see all attribute name go to eav/Model/Entity/Setup.php) and in database also check it and give the same

version in config.xml as your script name and to see sny module setup go to core_resource..

good link for collection


to get product data on block page or to get any collection data on block page do this….
$collection = Mage::getModel(‘catalog/product’)->getCollection();
foreach($collection as $product)
$res = $product->getId();
$data = Mage::getModel(‘catalog/product’)->load($res);
now specify attribute which you want to get and also you can apply all the method for attribute on this

collection like….
$collection->addAttributeToSelect(‘attribute_code’) or addFieldToFilter(‘attribute_code’)…

in magento collection return means you get whole collection means query like select * from.. but if you want

to mkae collection for some condition then use addFilterToAttribute, in that you can pass condition as well

as any join.. and to get any particular attribute call addAttributeToSelect(‘attribute_code’)..

in admin panel to get value of any element for example you want to get value of any textblox or file then

just use getValue() function.  and if you have not element then call like this



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: