Magento PHP Joomla Wordpress MySQL Jquery Ajax HTML CSS Blog

Magento: Convert price from default currency to some other currency 1

Magento: Convert price from default currency to some other currency

To convert the price to some other currency we need to select that currency in allowed currency and import currency rates from System->Manage currency ->Rates . The synatx for currency conversion is currencyConvert($amount, $from,...

Magento: Check if a module is installed, enabled or active 0

Magento: Check if a module is installed, enabled or active

Here is a quick code to check if a Magento module is installed, enabled or active. The functions isModuleEnabled and isModuleOutputEnabled are present in Mage_Core_Helper_Abstract class. You can also check if the output of...

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...

Magento: Add Custom Selection List in System Configuration 0

Magento: Add Custom Selection List in System Configuration

This tutorial shows how to add a custom select list in configuration settings of a custom Magento module. Suppose, your module’s namespace is YourNamespace and your module’s name is YourModule. And, you want to...

Magento – Accessing a customer’s wishlist 0

Magento – Accessing a customer’s wishlist

The array variable $arrProductIds will now contain the list of all Product IDs that have been wishlisted by that specific Customer.

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...

How do I get a barcode in Magento email template 0

How do I get a barcode in Magento email template

I found this out while scouring the net on my quest for all my other recent problems. Zend has a built in barcode generation class, Zend_Barcode. Then googling php image output, I put together...

Magento: Include Layered Navigation In A CMS Page 4

Magento: Include Layered Navigation In A CMS Page

To add Magento’s layered navigation to a CMS page where you’re showing items simply edit your CMS page in the admin – under the “Design” tab put this code: This will show the layered...

Override Magento Core Files – Simplest Way 0

Override Magento Core Files – Simplest Way

There are several methods used for overriding magento core files. Here I’m going to explain one of simplest method to override core files in magento. In this method to override magento core files, you...

PHP: Easily send email with PHPMailer 1

PHP: Easily send email with PHPMailer

PHP Mailer is a PHP class for PHP that provides a package of functions to send email. It is an efficient way to send e-mail within PHP. The following are some features of PHPMailer:-...

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();...