ambigous column in where clause

$collection = Mage::getResourceModel($this->_getCollectionClass()); //join field from order $collection->getSelect()->join(‘sales_flat_order’, ‘main_table.entity_id = sales_flat_order.entity_id’,array(‘is_partner’)); // baypass ambigous column in where clause $collection->addFilterToMap(‘is_virtual’, ‘main_table.is_virtual’); $collection->addFilterToMap(‘status’, ‘main_table.status’); $collection->addFilterToMap(‘created_at’, ‘main_table.created_at’); $collection->addFilterToMap(‘base_grand_total’,…

Magento: List of available types column in adminhtml widget grid

date adminhtml/widget_grid_column_renderer_date datetime adminhtml/widget_grid_column_renderer_datetime number adminhtml/widget_grid_column_renderer_number currency adminhtml/widget_grid_column_renderer_currency price adminhtml/widget_grid_column_renderer_price country adminhtml/widget_grid_column_renderer_country concat adminhtml/widget_grid_column_renderer_concat action adminhtml/widget_grid_column_renderer_action options adminhtml/widget_grid_column_renderer_options date adminhtml/widget_grid_column_renderer_date checkbox adminhtml/widget_grid_column_renderer_checkbox massaction adminhtml/widget_grid_column_renderer_massaction radio…

Delete magento attribute with options and values

$attribute_code = ‘some_attribute_code’; $attribute = Mage::getModel(‘eav/config’)->getAttribute(‘customer_address’,$attribute_code); $options = $attribute->getSource()->getAllOptions(); foreach ($options as $option) { if ($option[‘label’] === ” && $option[‘value’]) { $newOptions[‘value’][$option[‘value’]][] = $option[‘label’]; $newOptions[‘delete’][$option[‘value’]]…