Questions tagged [installdata]
The installdata tag has no summary.
44 questions
0 votes
2 answers
129 views
In Adminpanel di.xml for graphql [closed]
Autosmart\CategoryAttributes\Model\Resolver\CategoryAttribute resolve
1 vote
1 answer
423 views
Unable to add attribute to product by InstallData
I would like to add a custom attribute to the product and create an installData.php according to the guide. However, nothing changed after se:up. Please help. app/code/My/Module/Setup/InstallData.php &...
1 vote
2 answers
1k views
How to force my db_schema.xml to run after a third-party InstallData.php?
I'm working with a legacy module where they used the old InstallData.php script to build their tables, and now I need to make some changes to them. If I wrote those changes in a db_schema.xml, it gets ...
0 votes
2 answers
365 views
data install/upgrade not creating category attribute
i'm trying to add an attribute to the categories, but my setup doesn't add anything the input is visible in the categories, but you even on save the input value stays empty and i can't find any ...
2 votes
0 answers
547 views
Add reply field to Review Form - Magento 2 (current version 2.3.5p1)
I have created the following: registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Vendor_NewField', ...
2 votes
1 answer
453 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\...
1 vote
1 answer
63 views
Magento2 Install data Custom attr set, attr group, attr
Here is my installation method. Why, after installation, in the default attribute set, I see only the attributes https://prnt.sc/s20b3a, https://prnt.sc/s20czw? They should not be here. How to fix? ...
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\...
0 votes
1 answer
76 views
How can i create custom customer attribute programatically in magento 2?
Here my question is not how to create customer attribute. I want to know the running flow explanation of this process? We can create this by below code in custom module. <?php namespace Vendor\...
1 vote
0 answers
140 views
Is it possible to use default Magento colorPicker in 'Update Attributes' action?
I am trying to use default Color Picker component of Magento. If I edit products individually the color picker works perfectly. Once I try the update attributes action from Catalog->Products page ...
1 vote
2 answers
606 views
Magento2 - InstallData Cms Page with content from file
as the title suggests I'm creating a module that programmatically installs pages on cms_page, my problem arises when I want to load the contents of a phtml file and pass it as html into the array to ...
2 votes
2 answers
415 views
No region found within the locale 'en' while running UpgradeData.php
I'm trying to set up 2 stores I created using InstallData script, but When I run php bin/magento setup:upgrade, I'm getting an error No region found within the locale 'en' and the process stops. What ...
0 votes
3 answers
748 views
Magento 2: Undefined variable: installer
I'm too new to Magento: i'm getting an error when setup:upgrade, here is my code: app/code/Adamsmage/Checkoutattribute/Setup/InstallData.php <?php namespace Adamsmage\Checkoutattribute\Setup; use ...
0 votes
2 answers
313 views
Magento 2: Getting Error When Adding Customer Address Attribute
I'm using Magento 2.2.3, i need to add Customer Address Attribute, but when i run setup:upgrade I'm getting error of Wrong Entity ID. Here is My code: CustomerAddress\Attribute\Setup\InstallData.php ...
0 votes
2 answers
491 views
Magento2: How to add new column in admin_user table?
How to add a new column in admin_user table Magento 2 ?