How to replace Rs with rupee Symbol in Magento

Magento by default sets Indian currency as Rs.
If you are looking to replace it with the new Symbol, here is how to get that done.
[root folder]\lib\Zend\Locale\Data\root.xml
Open [root folder]/lib/Zend/Locale/Data/root.xml in notepad++
find the line which says

<currency type=”INR”><symbol>Rs</symbol></currency>

Replace with :
<currency type=”INR”>

Clear cache from admin backend and delete all files inside /var/cache.

Done 🙂

Magento automatically clear old cart items when user logged in using event observer

File: app/ect/modules/Nik_Clearoldcart.xml

<?xml version="1.0"?>

File: app/code/local/Nik/Clearoldcart/etc/config.xml

<?xml version = "1.0" ?>
<sales_quote_merge_before><!--calling this event before merging the old cart with newly added cart items while login-->
<nik_clearoldcart_observer><!--unique identifier name for our observer-->
<class>Nik_Clearoldcart_Model_Observer</class><!--Our observer class name-->
<method>loadCustomerQuote</method><!--Method to be called from our observer class-->

File: app/code/local/Nik/Clearoldcart/Model/Observer.php


class Nik_Clearoldcart_Model_Observer extends Mage_Checkout_Model_Session {

* Clears old cart items after login
* @return object currently added cart items
public function loadCustomerQuote() {
$customerQuote = Mage::getModel('sales/quote')

if ($customerQuote->getId() && $this->getQuoteId() != $customerQuote->getId()) {
// Removing old cart items of the customer.
foreach ($customerQuote->getAllItems() as $item) {
if ($item->getHasChildren()) {
foreach ($item->getChildren() as $child) {
} else {

return $this;


In above code we have overridden the Mage_Checkout_Model_Session::loadCustomerQuote() action to avoid merging of old cart items.
Instead of merging the products we have just deleted it!
That’s what we have done!