Questions tagged [data-install]
The data-install tag has no usage guidance.
7 questions
1
vote
1
answer
1k
views
Magento 2 upgrade - Setup:upgrade stuck at Magento_Customer
I am trying to upgrade Magento 2.2.1 to Magento 2.4.3-p1 using composer and successfully new version upgrade but when run upgrade command but process stuck not progress process of from Data install/...
1
vote
3
answers
5k
views
Magento 2 - InstallData.php does not run again after first time
I have created my custom module to add more attributes for customers.
The InstallData.php worked perfectly for the first time and added all the attributes I wanted.
However, I need to add more ...
1
vote
3
answers
8k
views
Magento2: How can update & create the CMS static Page programmatically
How can update an existing CMS static Page and how to create a new CMS static Page - programmatically
5
votes
2
answers
3k
views
Data install script wasn't run
I've created an installer script which does its job, but the data-install script doesn't seem to be running and I'm not sure why. Here is my data-install script:
<?php
$defaultCategories = ...
1
vote
1
answer
43
views
How do I quickly add custom attributes to a large subset of customers?
I have a data-install script that I'd like to update each customer with a new custom id. I'm restricting the update to 2 customer groups, so I'm fetching the customers like so:
$customers = Mage::...
3
votes
2
answers
11k
views
How core_config_data settings work
I have a question related to core_config_data. Need some magento experts to clarify this.
For eg:
I have paypal extension disabled by default. When you enable it from the admin interface it enables ...
3
votes
1
answer
992
views
How can I programmatically create a RESTful api role and consumer?
How can I create a RESTful role and consumer during the installation of an extension (module) using a data-install script located at:
app/code/community/Namespace/Module/data/namespace_module_setup/...