Skip to main content

Questions tagged [data-patch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 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\...
Magecomp Product Team's user avatar
0 votes
2 answers
168 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?
Vinod Kumar's user avatar
  • 2,065
0 votes
1 answer
129 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 ...
shankar boss's user avatar
  • 1,453
0 votes
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 ...
user3417608's user avatar
0 votes
1 answer
125 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 ...
LosMos's user avatar
  • 121
0 votes
1 answer
127 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?
Narek Malkhasyan's user avatar
0 votes
3 answers
453 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-...
Frank Groot's user avatar
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 ...
Frank Groot's user avatar
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 ...
Bhavesh Godhani's user avatar