Skip to content

Instantly share code, notes, and snippets.

View mssdef's full-sized avatar
💭
Working with Magento extensions

Andrew mssdef

💭
Working with Magento extensions
View GitHub Profile
@mssdef
mssdef / magento-set-defaults-address.php
Created November 11, 2015 08:14 — forked from ashfame/magento-set-defaults-address.php
Programmatically set default billing/shipping address of customers if they are not set in magento
<?php
require_once ("app/Mage.php");
umask(0);
Mage::app("default");
$collection = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*');
foreach ($collection as $customer) {