2

I have to override magento2/vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml file and create it in my theme.

How to override this file?

1

You can override using below folder path in your theme, Same as frontend folder templates,

magento2/app/design/frontend/Vendor/themename/Magento_Catalog/templates/product/price/amount/default.phtml
0

Every module from vendor folder in now named module-*(name of module), and in your theme you can translate it to Magento_*(name of module).

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.