Hi ! I'm currently implementing customer attributes and one of them has to be a date but I don't get the code right.
Here is my installer.
<?php
$installer = $this;
$installer->startSetup ();
$installer->addAttribute ( "customer", "dateentree", array (
"type" => "datetime",
"backend" => "eav/entity_attribute_backend_datetime",
"label" => "Date Entrée",
"input" => "date",
"source" => "",
"visible" => true,
"required" => true,
"default" => "",
"frontend" => "",
"unique" => false,
"note" => ""
) );
$attribute = Mage::getSingleton ( "eav/config" )->getAttribute ("customer", "dateentree" );
$used_in_forms = array ();
$used_in_forms [] = "adminhtml_customer";
$used_in_forms [] = "customer_account_create";
$used_in_forms [] = "customer_account_edit";
$attribute->setData ( "used_in_forms", $used_in_forms )
->setData ( "is_used_for_customer_segment", true )
->setData ( "is_system", 0 )
->setData ( "is_user_defined", 1 )
->setData ( "is_visible", 1 )
->setData ( "sort_order", 110 );
$attribute->save ();
$installer->endSetup ();
Do you have an idea why it doesn't implement on my DB and back-end ?