Advertisement
Guest User

Untitled

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