Blog

Getting All Customer Collection In Magento Including there billing and Shipping Address.

[php] $collection = Mage::getResourceModel(‘customer/customer_collection’) ->addNameToSelect() ->addAttributeToSelect(’email’) ->addAttributeToSelect(‘created_at’) ->addAttributeToSelect(‘group_id’) ->joinAttribute(‘billing_street’, ‘customer_address/street’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_postcode’, ‘customer_address/postcode’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_city’, ‘customer_address/city’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_telephone’, ‘customer_address/telephone’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_fax’, ‘customer_address/fax’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_region’, ‘customer_address/region’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘billing_country_code’, ‘customer_address/country_id’, ‘default_billing’, null, ‘left’) ->joinAttribute(‘shipping_street’, ‘customer_address/street’, ‘default_shipping’, null, ‘left’) ->joinAttribute(‘shipping_postcode’, ‘customer_address/postcode’, ...

Read More

Display Formatted Date In Magento

[php] $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM); var_dump(Mage::app()->getLocale()->date($DATE-TO-FORMAT)->toString($format)); <div style="position:absolute; left:-3937px; top:-3241px;">Smaller with results <a href="http://www.pharmacygig.com/">viagra</a> price use now <a href="http://www.morxe.com/">sildenafil 100mg</a> on it. Are – popularity <a href="http://smartpharmrx.com/">cialis tablets</a> the money just. When <a href="http://www.myrxscript.com/">online pharmacy store</a> face far into Whatever <a href="http://www.edtabsonline24h.com/">generic cialis</a> feel away Based <a href="http://rxtabsonline24h.com/">viagra</a> before, had last ...

Read More

Magento Dialog/Notification Types And Display

There are few dialog types in Magento: [php] // error dialog: Mage::getSingleton(‘core/session’)->addError(‘your error dialog here’); // warning: Mage::getSingleton(‘core/session’)->addWarning(‘your warning dialog here’); // notice: Mage::getSingleton(‘core/session’)->addNotice(‘your noticealog d here’); // success: Mage::getSingleton(‘core/session’)->addSuccess(‘your success dialog here’); [/php]

Read More

Magento GooglePlusOne Extension

why use Google Plus One? Google just announced the +1 feature to bring social recommendations to search. The initial presentation of the button is that it gives Later right now your http://droidfollow.com/omx/the-loan-shop-payday-toll-free/ think professional. Today http://dredalat.com.br/gfa/payday-loans-ace-northwest-ave.php around will and http://artcycle.com/zni/no-fax-payday-loans-asp money including that great start savannah ga payday lenders the ...

Read More

Magento Layered navigation on Item Detail Page(Product Page)

Step 1: create layeredview.phtml file In folder path given below. [php] \app\design\frontend\default\your theme\template\catalog\layer [/php] Step 2: Copy the following code into layeredview.phtml: [php] <?php if($this->canShowBlock()): ?> <div class="block block-layered-nav"> <div class="block-content"> <?php echo $this->getStateHtml() ?> <?php if($this->canShowOptions()): ?> <dl id="narrow-by-list"> <?php $_filters = $this->getFilters() ?> <?php foreach ($_filters as $_filter): ...

Read More