There are some pages in Magento with no breadcrumbs enabled by default. In order to enable it, for example, on the checkout page, open checkout.xml file stored in 'layout' folder of the current theme, and find there 'checkout_onepage_index' block. Then add to the block this code:
Magento E-commerce Platform Q/ A
The feature notifies the user who submits 'Contact Us' form on site (the notification will be delivered to the indicated by the user email address).
See the image:
The notification message example:
To enable the feature:
1. We will extend Contacts settings with the ability to Enable/ Disable notification and the ability to choose the template of the notification to send to the user.
Add file system.xml into the module folder:
The feature might be useful for the stores dealing with large and often updated inventory. In order not to convert each product manually after each inventory update to existing bundle products it is possible to make the process automated.
First we will create the observer that will be performing the function each time a new product is saved.
Announce the observer in config.xml file:
In this article we will add a custom table to Magento admin interface. The table that will be displaying information from the data base table: sales_flat_order_item.
Namespace - Ikantam
Module - KnowledgeBase
In the configuration file of the module we will create new item 'Order Items'
In Tabs.php file of custom module in _beforeToHtml method we will add a custom tab after the main (default) tab and will place a category tree there:
$this->addTab('category_tree_tab', array( 'label' => Mage::helper('catalog')->__('Category Tree Tab'), 'url' => $this->getUrl('modulename/adminhtml_index/categories', array('_current' => true)), 'class' => 'ajax', ));
Then in parameter url we should indicate the path to a method categoriesAction (method presented below)
Let's assume your customer needs to redirect store users when they click on some category link to some particular product page. You can do it by creating a simple module.
The structure of the etc/config.xml file:
To add a new magento category tab (manage categories page/ admin area), rewrite or simply copy the file from: core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php to: local/Mage/Adminhtml/Block/Catalog/Category/Tabs.php.
Next in _prepareLayout method after this code:
$this->addTab(’products’, array( ‘label’ => Mage::helper(’catalog’)->__(’Category Products’), ‘content’ => $this->getLayout()->createBlock(’adminhtml/catalog_category_tab_product’, ‘category.product.grid’)->toHtml(), ));
Add this one:
Magento Grid – a very handy tool for flexible data display. In Magento it is usually presented as a table. There is a possibility to modify tables if necessary.
To do this, you need to add a column to Magento grid and overwrite the default renderer with a custom one.
In the example below, instead of product id we will be displaying product image in 'Product' id column. You can see default meaning of the column (before customization):
Use this code to add a custom renderer:
Rewrite class: Mage_Adminhtml_Block_Widget_Grid. File is stored here: /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
To add new data to the collection, modify method: _prepareCollection as shown in the example below (by doing so, you’ll make the necessary order information displayed on frontend):