Turn off Cache for Individual Blocks in Magento

Turn off block caching while declaring the XML block

<action method="unsetData"><key>cache_lifetime</key></action>
<action method="unsetData"><key>cache_tags</key></action>

In your local.xml file:

   <reference name="footer">
     <action method="unsetData"><key>cache_lifetime</key></action>
     <action method="unsetData"><key>cache_tags</key></action>
    <block type="mymodule/mymodule_block" name="module_name" as="module_name_alias" template="mymodule/uncached_block.phtml" after="-" />

Notes: Sourced from http://blog.magikcommerce.com/how-to-turn-off-cache-for-an-individual-block-in-magento/


Magento Extension: Remove any link from My Account navigation

Have you ever tried to remove a My Account navigation item via local.xml, it’s not easy right!? After some research and the help of a few magento community members I came across a snippet of code which allows you to remove items usingĀ method=”removeLink”.

 public function removeLink($name)
        return $this;

To implement this snippet of code, you had to modify core functionality and I thought to make it a little cleaner, I would create a simple magento extension.

You can download it here: PaulDonnelly_RemoveLink

To remove links view removelinks.xml and uncomment the links you would like to remove.

You may also move the contents of customer_account_navigation to local.xml.

Please note: I have only tested this in and Always take backups!!


Add Order Status to Last 5 Orders on Magento Admin Dashboard

It’s happened to us all folks, you log onto the admin dashboard you see an new order in the last 5 orders list and automatically think to yourself, “Nice, I have a new order!”. Well hold on a minute, this is not always the case, the order could have be abandoned or pending payment. This has happened to me a few too many times this week so I decided, I NEED to have the order status along with the Customer Name, Items & Grand Total.

If you follow the instructions below, I will show you how to add Status to the Last 5 Orders grid.

Standard Grid

Modified Grid

First of all, and this is a must when modifying any core files, create a local copy of the following file:

Copy app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php

To app/code/local/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php

Open your local copy of Grid.php and around line 114 add the following:

$this->addColumn('status', array(
'header' => Mage::helper('sales')->__('Status'),
'index' => 'status',
'type'  => 'options',
'width' => '70px',
'sortable'  => false,
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),

Save and upload the local copy and you should now have a column called Status in your Last 5 Orders.

Magento – Get Store Email Addresses

General Contact

/* Sender Name */
/* Sender Email */

Continue reading Magento – Get Store Email Addresses