Try the Demo

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