¡@

Home 

php Programming Glossary: addcolumn

ALTER TABLE in Magento setup script without using SQL

http://stackoverflow.com/questions/4315660/alter-table-in-magento-setup-script-without-using-sql

table setName this getTable 'module table' table addColumn 'id' Varien_Db_Ddl_Table TYPE_INT 10 array 'unsigned' true.. TYPE_INT 10 array 'unsigned' true 'primary' true table addColumn 'name' Varien_Db_Ddl_Table TYPE_VARCHAR 255 table addIndex 'name'.. table Use setup connection this getConnection methods addColumn method adds new column to exiting table. It has such parameters..

Extend Magento's EAV Attribute Model

http://stackoverflow.com/questions/5786908/extend-magentos-eav-attribute-model

getTable 'catalog eav_attribute' installer getConnection addColumn table 'is_visible_in_category_list' TINYINT 1 UNSIGNED NOT NULL..

Add column to Magento admin catolog > manage products

http://stackoverflow.com/questions/5990910/add-column-to-magento-admin-catolog-manage-products

class My_Module_Model_Adminhtml_Observer public function addColumn Mage_Adminhtml_Block_Catalog_Product_Grid block block addColumnAfter.. Mage_Adminhtml_Block_Catalog_Product_Grid block block addColumnAfter 'COLUMN_ID' array 'header' Mage helper 'module' __ 'COLUMN_ID'.. instanceof Mage_Adminhtml_Block_Catalog_Product this addColumn productListBlock getChild 'grid' else if block Mage app getLayout..