Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working with Magento extensions

Andrew Romacenko mssdef

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