Magento 2 - InstallData script doesn´t add column to my 'customer_entitiy'
I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me.
I want a custom attribute to be displayed and saved when the user wants to register in the frontend.
What I did :
- Create Module
module.xml -> app/code/Magento/CustomerAttribute/etc
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Magento_CustomerAttribute" setup_version="1.0.0">
<sequence>
<module name="Magento_Customer"/>
</sequence>
</module>
</config>
- Create InstallData.php with my custom value
InstallData.php -> app/code/Magento/CustomerAttribute/Setup
<?php
namespace MagentoCustomerAttributeSetup;
use MagentoCustomerSetupCustomerSetupFactory;
use MagentoCustomerModelCustomer;
use MagentoEavModelEntityAttributeSet as AttributeSet;
use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
/**
* @codeCoverageIgnore
*/
class InstallData implements InstallDataInterface
{
/**
* @var CustomerSetupFactory
*/
protected $customerSetupFactory;
/**
* @var AttributeSetFactory
*/
private $attributeSetFactory;
/**
* @param CustomerSetupFactory $customerSetupFactory
* @param AttributeSetFactory $attributeSetFactory
*/
public function __construct(
CustomerSetupFactory $customerSetupFactory,
AttributeSetFactory $attributeSetFactory
) {
$this->customerSetupFactory = $customerSetupFactory;
$this->attributeSetFactory = $attributeSetFactory;
}
/**
* {@inheritdoc}
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
/** @var CustomerSetup $customerSetup */
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerEntity = $customerSetup->getEavConfig()->getEntityType('customer');
$attributeSetId = $customerEntity->getDefaultAttributeSetId();
/** @var $attributeSet AttributeSet */
$attributeSet = $this->attributeSetFactory->create();
$attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);
$customerSetup->addAttribute(Customer::ENTITY, 'kndnumber', [
'type' => 'varchar',
'label' => 'Kunden nummer',
'input' => 'text',
'required' => false,
'visible' => true,
'user_defined' => true,
'sort_order' => 1000,
'position' => 1000,
'system' => 0,
]);
$attribute = $customerSetup->getEavConfig()->getAttribute(Customer::ENTITY, 'kndnumber')
->addData([
'attribute_set_id' => $attributeSetId,
'attribute_group_id' => $attributeGroupId,
'used_in_forms' => ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address'],
]);
$attribute->save();
}
}
After running php bin/magento setup:upgrade nothing happens the field was not added to the table customer_entitiy.
I tryed every tutorial on the Internet and still cant get it working. If I could debug that thing it would be a bit easier for developers.
Do you have any suggestions why this script doesnt work?
magento2 customer custom customer-attribute customer-address
add a comment |
I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me.
I want a custom attribute to be displayed and saved when the user wants to register in the frontend.
What I did :
- Create Module
module.xml -> app/code/Magento/CustomerAttribute/etc
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Magento_CustomerAttribute" setup_version="1.0.0">
<sequence>
<module name="Magento_Customer"/>
</sequence>
</module>
</config>
- Create InstallData.php with my custom value
InstallData.php -> app/code/Magento/CustomerAttribute/Setup
<?php
namespace MagentoCustomerAttributeSetup;
use MagentoCustomerSetupCustomerSetupFactory;
use MagentoCustomerModelCustomer;
use MagentoEavModelEntityAttributeSet as AttributeSet;
use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
/**
* @codeCoverageIgnore
*/
class InstallData implements InstallDataInterface
{
/**
* @var CustomerSetupFactory
*/
protected $customerSetupFactory;
/**
* @var AttributeSetFactory
*/
private $attributeSetFactory;
/**
* @param CustomerSetupFactory $customerSetupFactory
* @param AttributeSetFactory $attributeSetFactory
*/
public function __construct(
CustomerSetupFactory $customerSetupFactory,
AttributeSetFactory $attributeSetFactory
) {
$this->customerSetupFactory = $customerSetupFactory;
$this->attributeSetFactory = $attributeSetFactory;
}
/**
* {@inheritdoc}
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
/** @var CustomerSetup $customerSetup */
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerEntity = $customerSetup->getEavConfig()->getEntityType('customer');
$attributeSetId = $customerEntity->getDefaultAttributeSetId();
/** @var $attributeSet AttributeSet */
$attributeSet = $this->attributeSetFactory->create();
$attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);
$customerSetup->addAttribute(Customer::ENTITY, 'kndnumber', [
'type' => 'varchar',
'label' => 'Kunden nummer',
'input' => 'text',
'required' => false,
'visible' => true,
'user_defined' => true,
'sort_order' => 1000,
'position' => 1000,
'system' => 0,
]);
$attribute = $customerSetup->getEavConfig()->getAttribute(Customer::ENTITY, 'kndnumber')
->addData([
'attribute_set_id' => $attributeSetId,
'attribute_group_id' => $attributeGroupId,
'used_in_forms' => ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address'],
]);
$attribute->save();
}
}
After running php bin/magento setup:upgrade nothing happens the field was not added to the table customer_entitiy.
I tryed every tutorial on the Internet and still cant get it working. If I could debug that thing it would be a bit easier for developers.
Do you have any suggestions why this script doesnt work?
magento2 customer custom customer-attribute customer-address
add a comment |
I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me.
I want a custom attribute to be displayed and saved when the user wants to register in the frontend.
What I did :
- Create Module
module.xml -> app/code/Magento/CustomerAttribute/etc
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Magento_CustomerAttribute" setup_version="1.0.0">
<sequence>
<module name="Magento_Customer"/>
</sequence>
</module>
</config>
- Create InstallData.php with my custom value
InstallData.php -> app/code/Magento/CustomerAttribute/Setup
<?php
namespace MagentoCustomerAttributeSetup;
use MagentoCustomerSetupCustomerSetupFactory;
use MagentoCustomerModelCustomer;
use MagentoEavModelEntityAttributeSet as AttributeSet;
use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
/**
* @codeCoverageIgnore
*/
class InstallData implements InstallDataInterface
{
/**
* @var CustomerSetupFactory
*/
protected $customerSetupFactory;
/**
* @var AttributeSetFactory
*/
private $attributeSetFactory;
/**
* @param CustomerSetupFactory $customerSetupFactory
* @param AttributeSetFactory $attributeSetFactory
*/
public function __construct(
CustomerSetupFactory $customerSetupFactory,
AttributeSetFactory $attributeSetFactory
) {
$this->customerSetupFactory = $customerSetupFactory;
$this->attributeSetFactory = $attributeSetFactory;
}
/**
* {@inheritdoc}
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
/** @var CustomerSetup $customerSetup */
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerEntity = $customerSetup->getEavConfig()->getEntityType('customer');
$attributeSetId = $customerEntity->getDefaultAttributeSetId();
/** @var $attributeSet AttributeSet */
$attributeSet = $this->attributeSetFactory->create();
$attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);
$customerSetup->addAttribute(Customer::ENTITY, 'kndnumber', [
'type' => 'varchar',
'label' => 'Kunden nummer',
'input' => 'text',
'required' => false,
'visible' => true,
'user_defined' => true,
'sort_order' => 1000,
'position' => 1000,
'system' => 0,
]);
$attribute = $customerSetup->getEavConfig()->getAttribute(Customer::ENTITY, 'kndnumber')
->addData([
'attribute_set_id' => $attributeSetId,
'attribute_group_id' => $attributeGroupId,
'used_in_forms' => ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address'],
]);
$attribute->save();
}
}
After running php bin/magento setup:upgrade nothing happens the field was not added to the table customer_entitiy.
I tryed every tutorial on the Internet and still cant get it working. If I could debug that thing it would be a bit easier for developers.
Do you have any suggestions why this script doesnt work?
magento2 customer custom customer-attribute customer-address
I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me.
I want a custom attribute to be displayed and saved when the user wants to register in the frontend.
What I did :
- Create Module
module.xml -> app/code/Magento/CustomerAttribute/etc
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Magento_CustomerAttribute" setup_version="1.0.0">
<sequence>
<module name="Magento_Customer"/>
</sequence>
</module>
</config>
- Create InstallData.php with my custom value
InstallData.php -> app/code/Magento/CustomerAttribute/Setup
<?php
namespace MagentoCustomerAttributeSetup;
use MagentoCustomerSetupCustomerSetupFactory;
use MagentoCustomerModelCustomer;
use MagentoEavModelEntityAttributeSet as AttributeSet;
use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
/**
* @codeCoverageIgnore
*/
class InstallData implements InstallDataInterface
{
/**
* @var CustomerSetupFactory
*/
protected $customerSetupFactory;
/**
* @var AttributeSetFactory
*/
private $attributeSetFactory;
/**
* @param CustomerSetupFactory $customerSetupFactory
* @param AttributeSetFactory $attributeSetFactory
*/
public function __construct(
CustomerSetupFactory $customerSetupFactory,
AttributeSetFactory $attributeSetFactory
) {
$this->customerSetupFactory = $customerSetupFactory;
$this->attributeSetFactory = $attributeSetFactory;
}
/**
* {@inheritdoc}
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
/** @var CustomerSetup $customerSetup */
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerEntity = $customerSetup->getEavConfig()->getEntityType('customer');
$attributeSetId = $customerEntity->getDefaultAttributeSetId();
/** @var $attributeSet AttributeSet */
$attributeSet = $this->attributeSetFactory->create();
$attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);
$customerSetup->addAttribute(Customer::ENTITY, 'kndnumber', [
'type' => 'varchar',
'label' => 'Kunden nummer',
'input' => 'text',
'required' => false,
'visible' => true,
'user_defined' => true,
'sort_order' => 1000,
'position' => 1000,
'system' => 0,
]);
$attribute = $customerSetup->getEavConfig()->getAttribute(Customer::ENTITY, 'kndnumber')
->addData([
'attribute_set_id' => $attributeSetId,
'attribute_group_id' => $attributeGroupId,
'used_in_forms' => ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address'],
]);
$attribute->save();
}
}
After running php bin/magento setup:upgrade nothing happens the field was not added to the table customer_entitiy.
I tryed every tutorial on the Internet and still cant get it working. If I could debug that thing it would be a bit easier for developers.
Do you have any suggestions why this script doesnt work?
magento2 customer custom customer-attribute customer-address
magento2 customer custom customer-attribute customer-address
asked yesterday
Moritz VogtMoritz Vogt
12
12
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You'll need to start and stop setup
/**
* @param ModuleDataSetupInterface $setup
* @param ModuleContextInterface $context
* @return void
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
/** @var MagentoQuoteSetupQuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);
$quoteInstaller->addAttribute('somename', 'code', ['type' => Table::TYPE_TEXT, 'length' => 255, 'nullable' => true]);
$setup->endSetup();
}
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
add a comment |
Customer is an EAV entity which means an attribute is not added to the main table. There should be an entry in eav_attribute
with attribute_code
set to kndnumber
. Values for this attribute will be saved in customer_entity_varchar
table.
If you do not see the attribute in the eav_attribute
table make sure your module is enabled. You can also remove entry from module_setup
table and run installation process once again. Remember that InstallData
script will only fire once if there is no entry in setup_module
table.
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module withphp bin/magento module:enable Magento_CustomerAttribute
command? Do you seeMagento_CustomerAttribute
insetup_module
?
– Zefiryn
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256895%2fmagento-2-installdata-script-doesn%25c2%25b4t-add-column-to-my-customer-entitiy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You'll need to start and stop setup
/**
* @param ModuleDataSetupInterface $setup
* @param ModuleContextInterface $context
* @return void
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
/** @var MagentoQuoteSetupQuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);
$quoteInstaller->addAttribute('somename', 'code', ['type' => Table::TYPE_TEXT, 'length' => 255, 'nullable' => true]);
$setup->endSetup();
}
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
add a comment |
You'll need to start and stop setup
/**
* @param ModuleDataSetupInterface $setup
* @param ModuleContextInterface $context
* @return void
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
/** @var MagentoQuoteSetupQuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);
$quoteInstaller->addAttribute('somename', 'code', ['type' => Table::TYPE_TEXT, 'length' => 255, 'nullable' => true]);
$setup->endSetup();
}
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
add a comment |
You'll need to start and stop setup
/**
* @param ModuleDataSetupInterface $setup
* @param ModuleContextInterface $context
* @return void
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
/** @var MagentoQuoteSetupQuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);
$quoteInstaller->addAttribute('somename', 'code', ['type' => Table::TYPE_TEXT, 'length' => 255, 'nullable' => true]);
$setup->endSetup();
}
You'll need to start and stop setup
/**
* @param ModuleDataSetupInterface $setup
* @param ModuleContextInterface $context
* @return void
*/
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
/** @var MagentoQuoteSetupQuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);
$quoteInstaller->addAttribute('somename', 'code', ['type' => Table::TYPE_TEXT, 'length' => 255, 'nullable' => true]);
$setup->endSetup();
}
answered yesterday
PathfinderPathfinder
1248
1248
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
add a comment |
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
Did that but that also wont work after clearing the 'setup_module' table and running the command it wont work.
– Moritz Vogt
yesterday
add a comment |
Customer is an EAV entity which means an attribute is not added to the main table. There should be an entry in eav_attribute
with attribute_code
set to kndnumber
. Values for this attribute will be saved in customer_entity_varchar
table.
If you do not see the attribute in the eav_attribute
table make sure your module is enabled. You can also remove entry from module_setup
table and run installation process once again. Remember that InstallData
script will only fire once if there is no entry in setup_module
table.
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module withphp bin/magento module:enable Magento_CustomerAttribute
command? Do you seeMagento_CustomerAttribute
insetup_module
?
– Zefiryn
yesterday
add a comment |
Customer is an EAV entity which means an attribute is not added to the main table. There should be an entry in eav_attribute
with attribute_code
set to kndnumber
. Values for this attribute will be saved in customer_entity_varchar
table.
If you do not see the attribute in the eav_attribute
table make sure your module is enabled. You can also remove entry from module_setup
table and run installation process once again. Remember that InstallData
script will only fire once if there is no entry in setup_module
table.
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module withphp bin/magento module:enable Magento_CustomerAttribute
command? Do you seeMagento_CustomerAttribute
insetup_module
?
– Zefiryn
yesterday
add a comment |
Customer is an EAV entity which means an attribute is not added to the main table. There should be an entry in eav_attribute
with attribute_code
set to kndnumber
. Values for this attribute will be saved in customer_entity_varchar
table.
If you do not see the attribute in the eav_attribute
table make sure your module is enabled. You can also remove entry from module_setup
table and run installation process once again. Remember that InstallData
script will only fire once if there is no entry in setup_module
table.
Customer is an EAV entity which means an attribute is not added to the main table. There should be an entry in eav_attribute
with attribute_code
set to kndnumber
. Values for this attribute will be saved in customer_entity_varchar
table.
If you do not see the attribute in the eav_attribute
table make sure your module is enabled. You can also remove entry from module_setup
table and run installation process once again. Remember that InstallData
script will only fire once if there is no entry in setup_module
table.
answered yesterday
ZefirynZefiryn
4,42821627
4,42821627
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module withphp bin/magento module:enable Magento_CustomerAttribute
command? Do you seeMagento_CustomerAttribute
insetup_module
?
– Zefiryn
yesterday
add a comment |
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module withphp bin/magento module:enable Magento_CustomerAttribute
command? Do you seeMagento_CustomerAttribute
insetup_module
?
– Zefiryn
yesterday
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Ok never came across an EAV entity, thanks for the explanation but I still can´t see "kndnumber" either in 'eav_attribute' nor in 'customer_entity_varchar'. Also after cleaning the setup_module table it is still not working.
– Moritz Vogt
yesterday
Have you enabled you module with
php bin/magento module:enable Magento_CustomerAttribute
command? Do you see Magento_CustomerAttribute
in setup_module
?– Zefiryn
yesterday
Have you enabled you module with
php bin/magento module:enable Magento_CustomerAttribute
command? Do you see Magento_CustomerAttribute
in setup_module
?– Zefiryn
yesterday
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256895%2fmagento-2-installdata-script-doesn%25c2%25b4t-add-column-to-my-customer-entitiy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown