What is the best way to Override Magento_Payment::info/default.phtml in module ?

  • Any thoughts on this ? – devhs Mar 16 at 10:19

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 – devhs Mar 1 at 10:27
  • I updated my answer :) – Diana Botean Mar 1 at 10:33
  • Thankyou i will try & update. – devhs Mar 1 at 12:00
  • roger that, please let me know the results. – Diana Botean Mar 1 at 14:39
  • 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. – devhs Mar 10 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.