Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
412 views

Install Data is not executed in magento 2

I am trying to create a category attribute: This is my file form Vendor/Module/Setup: use Magento\Catalog\Model\Category; use Magento\Catalog\Setup\CategorySetupFactory; use Magento\Framework\Setup\...
Attila Naghi's user avatar
  • 4,093
1 vote
2 answers
2k views

How to create multiple customer attributes in magento 2?

How to create multiple customer attributes in Magento 2 using InstallData or UpgradeData? <?php namespace DeviMage\CustomerAttribute\Setup; use Magento\Customer\Model\Customer; use Magento\...
Devidas's user avatar
  • 3,378
3 votes
1 answer
2k views

Magento 2 - Add Customer Attribute with Select Field

I'm trying to insert a customer attribute in magento 2 This is the InstallData script: use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use ...
Pako's user avatar
  • 174