If you have a requirement to remove breadcrumb from certain pages say the Magento CMS Pages then you can simply follow the 2 steps:
Step 1Create a “local.xml” file in your custom theme layout folder
Add the following content to the local.xml file
<?xml version="1.0" ?> <layout version="0.1.0"> <cms_page translate="label"> <reference name="root"> <remove name="breadcrumbs"/> </reference> </cms_page> </layout>
In order to optimize the performance of Magento websites it is recommended that you include only the relevant JS Or CSS files on a page. Generally all Magento websites have a slider on home page, so it is good idea to include the slider JS and CSS files only on the home page if none of the other web pages implement a slider.
You can use the following line to get the current store object.
// Get the current store $store = Mage::app()->getStore();
Below is the sample code showing you how you can access the store data. Two ways have been provided below to access the same data, you can use any one of them.
//Get the current store id $storeId = $store->getData('store_id'); $storeId = $store->getStoreId()); //Get the current store code $storeCode = $store->getData('code'); $storeCode = $store->getCode();
$model->getOrigData() returns the data that was originally loaded from the database when you initialized the model object and called $model->load() method. After loading the model you may have performed certain updates to the $model object calling methods like $model->setData(). $model->getData() return the $model object data in the present state.
Magento models extend the class ‘Mage_Core_Model_Abstract’ which in turn extends the class ‘Varien_Object’. The methods getData() and getOrigData() have been defined in the class ‘Varien_Object’.
In Magento you can build a multilingual as well as a multi-currency website. In order to facilitate a multi-currency website, Magento asks you to setup [Admin >> System >> Configuration >> General >> Currency Setup] a ‘base currency’, a ‘default display currency’ and ‘allowed currencies’. The ‘base currency’ can be configured at global level or website level depending on your catalog settings at Admin >> System >> Configuration >> Catalog >> Catalog >> Price >> Catalog Price Scope while ‘default display currency’ and ‘allowed currencies’ can be configured at store view level.
You may want to provide a sorting option “Creation Date” so that customers can easily find the newest and the oldest items.
To do so extend the class “Mage_Catalog_Model_Config” located at {{MAGENTO_ROOT}}/app/code/core/Mage/Catalog/Model/Config.php in a custom module and override the function “getAttributeUsedForSortByArray()”
Magento provides a configuration option to help you show a demo store notice when your web store is not yet live and you are just running a demo store.
To enable/disable the demo store notice:
The compiler in Magento makes a copy of every class used by the Magento system in the directory “includes/src” using the full class name as the filename. Thus, Magento Autoloader has to look only in the directory “includes/src” instead of traversing multiple paths.
Magento ships with a command line script “compiler.php” located in the shell directory present at the {{MAGENTO_ROOT}} of you installation.
The “Compilation” tool in Magento was introduced to give a performance boost to the Magento website. Complation tool does not convert Magento PHP code to Bytecode but what it does is that it concatenates various PHP files into larger files and stores them in a single location “includes/src”. So now the Autoloader has to look in includes/src and will open less files. Without Compliation enabled the Autoloader has to check app/code/local folder, app/code/community, app/code/core and finally lib in sequence in order to load a class.
In Magento Vanilla installation the products are sorted based on “Position” on the product listing page by default. You have the provision to configure the default sorting parameter from Magento admin. In Magento Vanilla installation admin the options available are – “Best Value”, “Name” and “Price”. “Best Value” sorting is actually sorting by position.
“name” and “price” are catalog attributes but “position” is not.
If in case you need to remove sorting by position then you will have to override the Catalog module model but if just you need to change the text then you can do it with the help of locale files.