Can no longer add registration fields in Magento 1.4.2.0
I have been struggling with this one quite some time untill I figured it out. Since 1.4.2, the attributes to show in the admin's customer's form have to be in table customer_form_attribute.
You can add them with an upgrade in your module's setup, with this code:
$eavConfig = Mage::getSingleton('eav/config');
$attribute = $eavConfig->getAttribute('customer', 'your_attributes_code');
$attribute->setData('used_in_forms', array('adminhtml_customer'));
$attribute->save();
Hope that helps.
Magento add extra fields to /customer/account/create/ page
Thanks for all your input. I came across this extension and it worked REALLY GREAT for me!
http://www.magentocommerce.com/magento-connect/custom-customer-registration-fields.html
Magento adding a new filed on the registration panel
Since magento is based on entitiy attribute model. You can not manage the attribute of the registration field directly. If you are a software developer you can create attribibute in database and change in your code in the same way. If you are not a software developer you can install a module which provide facelity to manage your resistration page. You can search on google by keyword "magento registration field manager" and found verious module for the registration field management.
Magento - custom Account/Registration Fields
In that tutorial where it creates the attributes (Register.html) provide the following settings for your checkbox value.
$settings = array (
'type' => 'bool',
'input' => 'checkbox',
'is_required'=> 0
);
The tutorial suggests a very unconventional method of setting up. In future you might find it easier to follow a tutorial for making a module to do it, it's a little longer but much more reliable. Or try a module creator to do the groundwork for you.
Magento - Upload file during registration
This is actually even easier:
Just make sure you set these parameters on your config.xml:
'attributes' => array(
'prooffile' => array(
'type' => 'text',
'input' => 'file',
'label' => 'Proof file',
'visible' => true,
'required' => false,
'position' => 100,
"user_defined" => false,
),
This adds a nice editor in your admin backend.
Related Topics
Php/Apache: PHP Fatal Error: Call to Undefined Function MySQL_Connect()
Differencebetween Crc32 and Crc32B
How to Send Https Posts Using PHP
Import Class Conditionally with the Keyword 'Use'
Alternative for Deprecated PHP Function: Eregi_Replace
Apostrophes Are Breaking My MySQL Query in PHP
How to Make a Select in PHP/MySQL Case Insensitive
What Is Laravel Render() Method For
PHP Flush Stopped Flushing in Iis7.5
PHP Replace All Spaces with Hyphens
How to Use Bind_Param for Order By
PHP - Make Multi-Dimensional Associative Array from a Delimited String