.Hi,
I’m trying to make the attribute taxvat unique for every customer. (especially for users that i create from the backend). i.e no duplicates.
Just like the email attribute, if the email is already used, user gets notified to use another email.
I tried from the eav_attribute to change “is_unique” to “1” but nothing happened..
Can you please help me how to achieve this..?
Thanks
.Hi, I’m trying to make the attribute taxvat unique for every customer. (especially for
Share
ok, i found the solution..
Find file /app/code/core/Mage/Customer/Model/Form.php (Don’t forget to override instead..)
in “public function validateData(array $data)”
add the code inside the
foreach ($this->getAttributes() as $attribute)