Questions tagged [installdata]
The installdata tag has no usage guidance.
10 questions with no upvoted or accepted answers
2
votes
0
answers
519
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
2
answers
2k
views
InstallData not working
I have InstallSchema.php as follows:
<?php
namespace Namespace\Module\Setup;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\...
1
vote
0
answers
124
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
584
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 ...
1
vote
2
answers
2k
views
Custom Attribute is not saving data in database
I'm trying to add custom text box named cashback in Magento 2 product add/edit page. I added the text box programmatically. But my below code doesn't add column in the table also not saving the value. ...
1
vote
1
answer
71
views
Error when trying to add custom attribute programmatically
I got this error when I try to create a custom attribute for products:
The configuration parameter "formElement" is a required for "instruction" field.
InstallData.php
<?php
namespace MyVendor\...
1
vote
1
answer
74
views
InstallData categories not add the categories
I make and installData to define new categories (I have a lot of categories and sub-categories and I don't know why but they are nor added, in the database I see they are added but it's strange see ...
1
vote
0
answers
162
views
Magento 2 InstallData SOLID principles
I have to add about 100 attributes to product, but the file length is about 3000 lines.In installer I only add new attribute set, attribute group and attributes.
I have attributes data in separate ...
0
votes
2
answers
317
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 ...
0
votes
3
answers
714
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 ...