Estimating shipping price for product

$corehelper = Mage::helper(‘core’); $cheapestrate = 0; if($_product->isSaleable()) { $_product = Mage::getModel(‘catalog/product’)->load($_product->getId()); $quote = Mage::getModel(‘sales/quote’); $quote->getShippingAddress()->setCountryId(‘PL’); $addToCartInfo = (array) $_product->getAddToCartInfo(); $request = new Varien_Object($addToCartInfo); if ($_product->getStockItem())…

Magento admin grid column is ambiguous – filter index

Sometimes, if you use custom collection with join tables: protected function _prepareCollection() { $collection = Mage::getModel(‘sales/order_item’)->getCollection() ; $collection->getSelect()->join( array(‘sfo’=>’sales_flat_order’),’sfo.entity_id=main_table.order_id’,array(‘sfo.increment_id’, ‘sfo.status’, ‘sfo.shipping_description’, ‘sfo.base_shipping_amount’)); $collection->getSelect()->join( array(‘e’=>’catalog_product_entity’), ‘main_table.sku…

Custom admin template

Add in your module config.xml file, in tag: default custom custom default default default Create new catalogs, such like as: app/design/adminhtml/default/custom app/design/adminhtml/default/custom/template app/design/adminhtml/default/custom/layout And do…

Magento Events List

Location Line Event cron.php 44 default app/code/core/Mage/Adminhtml/Controller/Action.php 151 adminhtml_controller_action_predispatch_start app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php 61 adminhtml_block_html_before app/code/core/Mage/Adminhtml/Block/Report/Grid.php 186 adminhtml_widget_grid_filter_collection app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php 76 adminhtml_cms_page_edit_tab_meta_prepare_form app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php 125 adminhtml_cms_page_edit_tab_design_prepare_form app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php 117 adminhtml_cms_page_edit_tab_main_prepare_form app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php…