cancel
Showing results for 
Search instead for 
Did you mean: 

How can I override core view file of magento 2

How can I override core view file of magento 2

Hello, 

 

 

I want to override 

 

/vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml file to show another price with current template. 

 

I've searched for it in forums people say just copy the file to app/design directory but it didn't work. 

 

My path for this file is now 

/app/design/frontend/Magento/luma/templates/product/price/amount/default.phtml. 

 

but it still reads the file in vendor instead of overriden one. thank you 

 

 

1 REPLY 1

Re: How can I override core view file of magento 2

Please follow the link to display custom value or replace the existing one.

Here

If still face any problem let us know I will guide you step by step with custom code and explanation.