I want to override prices in catalog module.

What I did was to test on actual phtml


It works as intended.

Now, to do it properly, I left file as it was originally and copied files and directory into my theme, made same modifications. Path where I copied files:


But changes are not being applied. is that the path I have to use?


Correct Folder path:


There should be no base folder in it.

Don't forget to static:content:deploy and flush:cache.

  • thanks, unfortunately changes are still not working. – fran35 Jul 24 '18 at 18:50
  • What is your vendor and theme name? can you please file path with code change? – Abhishek Panchal Jul 24 '18 at 18:51
  • vendor + path are: Es710/tk223/ code change are a couple of extra <br/> between span – fran35 Jul 24 '18 at 18:59
  • vendor path and theme name.??? – pramod24 Jul 24 '18 at 21:27
  • app/design/frontend/Es710/tk223/Magento_Catalog/product/price/final_price.phtml – fran35 Jul 25 '18 at 10:23

You need to have a theme installed and setup in the backend: from Content/Configuration, you should be able to see if the theme is aplied correctly

Only need to do static:content:deploy if you are in production mode.

I have tried out on a demo site locally installed:

  • prices have several templates and they are used all in different use cases:

--> the one that worked for me tonight is base/templates/product/price/amount/default.phtml

--> I suggest you may copy the files under the folder base/templates/product/price and after test with your data in your catalog, you will see which templates are needed in your theme

--> I attach a screenshot of my theme folder for you to compare

enter image description here

  • Thansk Herve, theme is applied correctly. Still, haven't found solution for it – fran35 Jul 25 '18 at 17:44

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.