Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
You can override using below folder path in your theme,
Same as frontend folder templates,
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).
module-*(name of module)
Magento_*(name of module)
Required, but never shown