All Questions
Tagged with installdata database
5 questions
1
vote
1
answer
371
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
&...
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 ...
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. ...
0
votes
2
answers
242
views
Problem with add an attribute to Customer in magento 2
I created a module in this way:
I created a vendor folder "Test1" Then I created a module folder "AddCustomerAttr" then a folder inside the module "etc" and inside "etc" I put module.xml:
<?xml ...
11
votes
4
answers
6k
views
Difference between InstallSchema and InstallData
I want to know the difference between InstallSchema and InstallData in details.
I also need to know when can I use InstallSchema.php and InstallData.php?