3

I have created custom attribute "CustomerAccount".Customer does not have access to this field .When new customer account is created CustomerAccount field should get random unique value and should get save in customer module.

3
  • And what do you want to do with that value? Why can't you use one of the other unique values?
    – Tobias
    Oct 16, 2013 at 14:03
  • I have created custom attribute successfully.We can enter the value from frontend also from backend and it also saves in database.But I don't want to save it from front end when the registration form is submitted unique , random CustomerAccount value should also get saved .I am using this CustomerAccount value for further validations.Using this customer account value i am allocating shops to that particular customer.I am not using email field because our customer does not provide us email value we generate email id using CustomerAccount value for eg:[email protected]
    – saniya
    Oct 18, 2013 at 5:26
  • Most easy way is to use customer id or md5(customer id) or time(). If you want another format you should create some logic to generate unique value.
    – mageUz
    Oct 31, 2013 at 22:30

1 Answer 1

1

You can use this extension for creating customer attributes. http://www.magentocommerce.com/magento-connect/customer-attributes-manager-5092.html

and if you don't want to show them on front end you can modify saveAction() function of its indexcontroller.php where it decided where to show attributes. It can work with magento 1.7 CE

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.