Questions tagged [data-install]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
2k 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
3answers
3k 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
2answers
2k 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 = ...
0
votes
1answer
33 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
2answers
9k 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
1answer
877 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/...