If the password reset page is emtpy after you installed the Magento security patch SUPEE-6788, the problem is most likely to be found in the customer.xml file. Open the customer.xml file of your theme and replace customer_account_resetpassword with customer_account_changeforgotten. The…
Removing block from cache (Magento 1)
To remove a certain block from the Magento cache, use the below code.
1 2 3 |
<reference name="name.of.the.block"> <action method="setCacheLifetime"><s>null</s></action> </reference> |
Removing the breadcrumb navigation on all pages (Magento 1)
Create a local copy of \app\design\frontend\base\default\layout\page.xml and remove or comment the following line:
1 |
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> |
Adding comments to fields in admin area (Magento 1)
It is possible and helpful to add comments to the Magento admin fields. Take a look at the following picture: To add a field and a comment, open your modules system.xml and add the below XML:
1 2 3 4 5 6 7 8 9 |
<some_thing translate="label"> <label>Test</label> <frontend_type>text</frontend_type> <sort_order>0</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <comment>Thats a comment!</comment> <some_thing> |
Getting the front name of a route programmatically (Magento 1)
Use the ollowing code to get a routes front name:
1 2 |
// will display "config" $frontName = (string)Mage::getConfig()->getNode('frontend/routers/whatever/args/frontName'); |
The code will return “config”, if you add the following XML to your modules config.xml:
1 2 3 4 5 6 7 8 9 10 11 |
<frontend> <routers> <whatever> <use>standard</use> <args> <module>Company_Module</module> <frontName>config</frontName> </args> </whatever> </routers> </frontend> |