Is it possible to override etc/import/block.xml with child theme ? I have modified block.xml itself and works fine for now but if I update 3rd party extension my modifications will be lost . I am trying to override Sm_Bestshop theme. How is it possible?
-
1Check by setting the Module dependencies if it helps! devdocs.magento.com/guides/v2.3/architecture/archi_perspectives/…– Bhaumik UpadhyayMay 18, 2020 at 16:12
-
@Bhaumik1987 Will test it now ! Thanks. Let's see if it works.– Giga TodadzeMay 18, 2020 at 17:49
-
I don't really think It will be possible to override block importing because I must rewrite on already created blocks ...– Giga TodadzeMay 19, 2020 at 5:40
-
Please check this post, if it helps! magento.stackexchange.com/questions/223451/…– Bhaumik UpadhyayMay 24, 2020 at 13:44
1 Answer
For me, The best way to change the blocks was to use DataPatch. overriding must happen with plugin but it's quite complicated