What is the best way to Override Magento_Payment::info/default.phtml
in module ?
1 Answer
Inside a custom theme would be the best approach to override this template.
LE: In a custom module there are several ways you could try this, check here the instructions from devdocs for Setting the template used by a block.
-
I am not using theme, just using a module is their any way i can override with in the module ? That would be great– devhsCommented Mar 1, 2021 at 10:27
-
-
-
-
Hello, Template file - Magento_Payment::info/default.phtml Block - Magento2/vendor/magento/module-payment/Block/Info.php The template file is declared in info.php, i have tried with plugin "beforeToHtml" & set module's template but didn't work.– devhsCommented Mar 10, 2021 at 11:16