I put some code in below file.

File path: vendor/magento/module-offline-payments/view/frontend/web/template/payment/cashondelivery.html

It is working fine in this file. The same code put here,

File path: app/design/frontend/Magento/xxxx/Magento_OfflinePayments/view/frontend/web/template/payment/cashondelivery.html

But not working. Please help me.


1 Answer 1


Make sure you have defined Magento/xxxx theme in your configuration, also when overriding a template in your theme, the path should be: Magento_OfflinePayments/web/template/payment/cashondelivery.html

  • Thank you it is working fine. change path to Magento_OfflinePayments/web/template/payment/cashondelivery.html Jun 3, 2019 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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