how to add customer photo in magento registration – profile page
I have to add 3 image upload box as per my client demand. First one was his photo , second one was his credit card front side scan copy and third one was credit card back side scan copy. He did it for his customer verification.
Now i will explain you how i fix it.
At first change the registration and edit form type to enctype=”multipart/form-data”
Add the following code in register.phtml to add photo field in database
$setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’);
$attr2 = array (
‘position’ => 1,
‘is_required’=>0 /* 0 if you want it to be a required field, 1 if not. Also, if required, add this class to the occupation input box on register.phtml class=”required-entry input-text” */
$setup->addAttribute(’1′, ‘photo’, $attr2);