Guest User

Untitled

a guest
Jun 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. $this->addAttribute('customer_address', 'customer_type', array(
  2. 'attribute_set' => 'attribute_set_code',
  3. 'type' => 'varchar',
  4. 'input' => 'multiselect',
  5. 'backend' => 'eav/entity_attribute_backend_array',
  6. 'label' => 'Customer Type',
  7. 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
  8. 'visible' => 1,
  9. 'required' => 0,
  10. 'user_defined' => 1,
  11. 'visible_on_front' => 1,
  12. 'option' => array (
  13. 'value' => array('1' => array('1'),
  14. '2' => array('2'),
  15. '3' => array('3'),
  16. )
  17. )
  18. ));
  19.  
  20.  
  21.  
  22. liegt in Model
  23.  
  24. <?php
  25.  
  26. class Rw_Intrashipprint_Adminhtml_Model_Customertype
  27. {
  28.  
  29. /**
  30. * Options getter
  31. *
  32. * @return array
  33. */
  34. public function toOptionArray()
  35. {
  36. return array(
  37. array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Yes')),
  38. array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('No')),
  39. );
  40. }
  41.  
  42. }
  43.  
  44.  
  45. Source model "" not found for attribute "customer_type".
Add Comment
Please, Sign In to add comment