Skip to main content

Questions tagged [installdata]

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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', ...
Jack Brooks's user avatar
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\...
DEEP JOSHI's user avatar
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 ...
Kieran's user avatar
  • 98
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 ...
Orazio D'Arrigo's user avatar
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. ...
Ramesh KR's user avatar
  • 886
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\...
qvasz's user avatar
  • 134
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 ...
Kpone's user avatar
  • 371
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 ...
Alex Yeremenko's user avatar
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 ...
user80390's user avatar
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 ...
Partab Saifuddin Zakir's user avatar