Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegansnyder/003614ca9bcaea08e403 to your computer and use it in GitHub Desktop.
Save tegansnyder/003614ca9bcaea08e403 to your computer and use it in GitHub Desktop.
Remove Inchoo Social Connect customer attributes
<?php
include 'app/Mage.php';
Mage::app();
// remove incho social connect customer attributes
$codes[] = 'inchoo_socialconnect_gid';
$codes[] = 'inchoo_socialconnect_gtoken';
$codes[] = 'inchoo_socialconnect_fid';
$codes[] = 'inchoo_socialconnect_ftoken';
$codes[] = 'inchoo_socialconnect_tid';
$codes[] = 'inchoo_socialconnect_ttoken';
$setupEAV = new Mage_Eav_Model_Entity_Setup('core_setup');
foreach ($codes as $code){
$setupEAV->removeAttribute('customer', $code);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment