Skip to content

Instantly share code, notes, and snippets.

View italoandre's full-sized avatar

Italo André italoandre

  • Fortaleza, CE - Brazil
View GitHub Profile
@italoandre
italoandre / adding_attributes_magento_database.php
Created October 7, 2011 16:54
Adding customer and address atributtes to Magento's Database - Adicionando atributos de cliente e endereço ao banco de dados do Magento
<?php
/**
USAGE:
Paste this code inside any file called by Magento, like the app/design/frontend/package/theme/page/html/head.phtml and just acess your store. The code will run and after that it must be removed or commented. Be aware that not removing or commenting it will add these attributes to the database everytime code runs.
USO:
Cole este código dentro de qualquer arquivo chamado pelo Magento, como o app/design/frontend/package/theme/page/html/head.phtml e acesse sua loja. O código será executado e depois disso ele deve ser removido ou comentado. Esteja ciente de que não remover ou comentar o código irá adicionar estes atributos ao banco cada vez que for executado.