Create Customer Attribute in Magento Easily

Share<?php $setup = new Mage_Customer_Model_Entity_Setup(‘core_setup’); $setup->addAttribute(‘customer’, ‘glasses_prescription’, array( ‘type’     => ‘text’, ‘input’    => ‘hidden’, ‘visible’  => false, ‘required’ => false )); if (version_compare(Mage::getVersion(), ‘1.6.0’, ‘<=’)) { $customer = Mage::getModel(‘customer/customer’); $attrSetId = $customer->getResource()->getEntityType()->getDefaultAttributeSetId(); $setup->addAttributeToSet(‘customer’, $attrSetId, ‘General’, ‘glasses_prescription’); } ?>

Manual Plugin Installation

Share Download  WordPress Plugin to your desktop. If downloaded as a zip archive, extract the Plugin folder to your desktop. Read through the “readme.txt” file thoroughly to insure you follow the installation instructions. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory. In admin panel go to Plugins screen and find the […]

%d bloggers like this: