Guest User

Untitled

a guest
Jun 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $eavSetup->addAttribute(
  2. MagentoCatalogModelProduct::ENTITY,
  3. 'some_attr',
  4. [
  5. 'type' => '',
  6. 'backend' => '',
  7. 'frontend' => '',
  8. 'label' => 'Test Attribute',
  9. 'input' => '',
  10. 'class' => '',
  11. 'source' => '',
  12. 'global' => MagentoCatalogModelResourceEavAttribute::SCOPE_GLOBAL,
  13. 'visible' => true,
  14. 'required' => false,
  15. 'user_defined' => false,
  16. 'default' => 0,
  17. 'searchable' => false,
  18. 'filterable' => false,
  19. 'comparable' => false,
  20. 'visible_on_front' => false,
  21. 'used_in_product_listing' => true,
  22. 'unique' => false,
  23. 'apply_to' => ''
  24. ]
  25. );
Add Comment
Please, Sign In to add comment