Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

cannot add unique constrain to a new customer attribute
 
headseller
Jr. Member
 
Total Posts:  8
Joined:  2012-04-18
 

Hi. I follow a tutorial to add customer attribute to Magento
http://www.excellencemagentoblog.com/customer-registration-fields-magento1-6

$setup->addAttribute('customer''school', array(
    
'type' => 'int',
    
'input' => 'select',
    
'label' => 'School',
    
'global' => 1,
    
'visible' => 1,
    
'required' => 0,
    
'user_defined' => 1,
    
'default' => '0',
    
'visible_on_front' => 1,
        
'source' => 'profile/entity_school',
));

I have added

\\\’unique\\\’ => 1, to the array setup, but when register I can still use the same value with two different email accounts? Can someone suggest?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top