Questions tagged [patch-data]
The patch-data tag has no summary.
19 questions
0
votes
2
answers
327
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?
1
vote
2
answers
1k
views
($callback) must be a valid callback
My extension is failing varnish test over and over again and the only visible error i have found in the error reports is
call_user_func(): Argument #1 ($callback) must be a valid callback, class "...
0
votes
3
answers
584
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-...
0
votes
1
answer
567
views
How to add table schema as a dependency in setup patch data?
I am creating a custom Module, in that I created a custom table and patch data. The patch data for inserting data into that table. Now the issue is, the custom table was created through declarative ...
0
votes
0
answers
451
views
Magento2: Config data save using Custom Module
I want to save encrypted value in core_config_data while setup upgrade without using config.xml. I am trying to use data patch file
Vendor\Credentials\Setup\Patch\Data\AddData.php
use Magento\...
2
votes
1
answer
3k
views
Magento 2: How to update the store configuration value using Data Patch
i want to update the store configuration value using Data Patch.
Note: please do not suggest install and upgrade script.
i tried below code but its not working:
<?php
/**
* Copyright © All ...
0
votes
0
answers
227
views
Missing Product scope after create websites/stores/storeviews via Data/Patch - Magento V2.4 Enterprise
I faced an issue. After create script Data/Patch to create multi websites/stores/storeviews. At dropdown of Scope Product, i dont see new websites/stores/storeviews, in spite of it has in ...
0
votes
1
answer
2k
views
Patch Not Working
Patch File: Bedard/CustomGloves/Setup/Patch/Data
<?php
namespace Bedard\CustomGloves\Setup\Patch\Data;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Magento\Framework\Setup\Patch\...
0
votes
1
answer
1k
views
How to change assigned group of a custom product attribute?
I have a custom product attribute which is under Advanced Pricing group . I am trying to change attribute group of this attribute via data patch using below code :
<?php
namespace Vendor\Module\...
1
vote
1
answer
401
views
Magento 2: Adding quote and order attribute using patch data
Can we add custom quote and order attribute/field using patch data in Magento 2.3.x ? If yes then how it can be done ?