Questions tagged [data-patch]
The data-patch tag has no usage guidance.
10 questions
0
votes
1
answer
78
views
Attribute Option label not updating in Magento2
I created a setup Patch file to update the label of attribute options.
Tried below code
Vendor\Custom\Setup\Patch\Data\UpdateColorAttributeOptions.php
<?php
namespace Vendor\Custom\Setup\Patch\...
0
votes
2
answers
336
views
Magento 2.4.7 Customer Custom Attribute Value no Change
When I created one Customer Custom Attribute and changed its value website-wise from Admin-> Edit Customer Information so did not change it.
<?php
namespace Vendor\Extension\Setup\Patch\...
0
votes
2
answers
249
views
How to create data patch to insert data in dynamic blocks in Magento 2.4?
How to create data patch to insert data into the database for dynamic blocks?
0
votes
1
answer
257
views
how to create custom attribute for order using data-patch in magento 2.4.6?
how can we create custom order attribute programatically using data-patch in magento 2.4.6 ? I know how to create this customer attribute for order using install schema but currently I am using ...
1
vote
1
answer
1k
views
Adding a product select attribute with a source in Magento 2.4
I've created a module to add a product attribute with a select input using a source for the options. I've used a data patch to add the attribute. I can see the patch in the patch_list table but it's ...
0
votes
1
answer
145
views
getting "URL key for specified store already exists." error when trying to apply data patch to update a cms page
I am trying to update a cms page through a data patch but, the patch is not applying. I get this error below
Unable to apply data patch Vendor\Module\Setup\Patch\Data\CreateRegistryPage for module ...
0
votes
1
answer
130
views
How to edit copyright text using data patch in Magento 2
In admin, copyright text can be edited like this: https://www.mageplaza.com/kb/how-update-copyright-notice-magento-2.html
But how to edit copyright via data patch?
0
votes
3
answers
517
views
Magento 2.4 get template file in data patch
I'm trying to insert a template file as the content for the block I'm adding programmatically, but I'm not sure how this can be done. I've added the template file in view/frontend/templates/template-...
1
vote
3
answers
3k
views
Magento 2.4 Unable to apply data patch: Area code is not set
While executing below data patch with setup:upgrade the following error appears in the console.
Unable to apply data patch Vendor\Module\Setup\Patch\Data\ModuleName for module Vendor_Module. Original ...
0
votes
2
answers
1k
views
When Magento upgrade 2.2.1 to 2.4.3 - Unable to apply data patch: module Magento_Tax
How to fix the below Error when magento upgrade 2.2.1 to 2.4.3.
When I have run setup upgrade command then showing error.
Unable to apply data patch
Magento\Tax\Setup\Patch\Data\UpdateTaxRegionId for ...