I have created a new field call childname which is a requierd field on an account registration form. I have: Added the form into the register.phtml ok and it displays on the form. put this code into /local/Mage/Customer/etc/config.xml <childname> <create>1</create> <update>1</update> </childname> Added this to /local/Mage/Customer/Model/Resource/Setup.php ‘childname’ => array( ‘type’ => ‘varchar’, ‘label’ => ‘Please [...]
Archive: array type
Posts Tagged ‘array type’
I’m trying to create a tab called Additonal in admin customer edit and place my custom employee attribute in it. Is this possible in via my modules sql setup? This question is relevant only to Magento >= 1.5.1. $installer = $this; $installer->startSetup(); $installer->addAttribute(‘customer’, ‘employee’, array( ‘type’ => ‘int’, ‘backend’ => ”, ‘frontend’ => ”, ‘label’ [...]
Hi I’ve added a custom order attribute and updated the onepage checkout page. Now I’m trying to add this attribute to the new order form in the admin. I’m trying to extend Mage_Adminhtml_Block_Sales_Order_Create_Form_Account and add a new field in the _prepareForm() method similar to the way the Group and Email fields are added. How do [...]
I have created custom attributes for a category in my module’s install script like so: $attrib = array( ‘type’ => ‘varchar’, ‘group’ => ‘My Data’, ‘backend’ => ”, ‘frontend’ => ”, ‘label’ => ‘My Custom Field’, ‘input’ => ‘text’, ‘class’ => ”, ‘source’ => ”, ‘global’ => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, ‘visible’ => true, ‘required’ => false, ‘user_defined’ [...]
hello , i inserted a code in the “product/view.phtml” page which inserts a custom option for the product when the page is loaded but it is not displaying the custom option on first load even if the custom option has been already inserted , but displays only after refreshing the page the code i used [...]