Tagged: Magento

Magento: Installing New Language Package 0

Magento: Installing New Language Package

Here is the step-by-step procedure to install new language package on Magento. Let’s assume that you want to install Dutch language package. 1. Go to this link. 2. Get the extension key. 3. Login...

0

Magento: Get real IP address behind a proxy

Get real IP address if your server or customer is behind a proxy network. Magento have function Mage::helper(‘core/http’)->getRemoteAddr(); to get client IP address, but it gives proxy IP address instead of real IP if...

0

Magento: Clear / Delete Shopping Cart Items of Single or All Customers

Here is the code to delete all shopping cart items of currently logged in single customer:- $cart = Mage::getSingleton(‘checkout/cart’); $quoteItems = Mage::getSingleton(‘checkout/session’) ->getQuote() ->getItemsCollection(); foreach( $quoteItems as $item ){ $cart->removeItem( $item->getId() ); } $cart->save();...