11

I'm currently developing a Magento 2.0 theme. I'm trying to change the behaviour of the Tax class on the frontend. The file I need to change is located in app/Code/Magento/Tax/view/base/templates/pricing/adjustment.phtml.

How can I override this view from my Magento theme?

Thanks

25

Create file with name app/design/frontend/[VendorName]/[theme]/Magento_Tax/templates/pricing/adjustment.phtml.

base folder it's default fallbacks for all arias and used to share resources across of areas

  • Not working please help me. – Pratik Mehta Oct 25 '18 at 4:38
  • Not Work it try copy from base folder and put as above – Chirag Gondaliya Feb 27 at 13:16
9

Copy the adjustment.phtml file form base template and put it in app/design/frontend/[VendorName]/[theme]/Magento_Tax/pricing/adjustment.phtml

For more information, you can get help from here

2

correct and if you need to change admin view base file for example:

vendor/magento/module-ui/view/base/web/templates/grid/listing.html

NOTE: this file is responsible for any grid in admin

you will have to create new admin theme and put template file in Magento_Ui folder inside new admin theme so that admin will call template from your theme location for example:

app/design/adminhtml/Vendor/Theme/Magento_Ui/web/templates/grid/listing.html

NOTE: I am putting this answer because i had one similar issue in admin side and i have posted question in magento stackexchange and i got solved it after long efforts so someone can get help from this answer.please check my question for more:

How can I add new Class in Magento2 sales grid?

0
app/design/frontend/[VendorName]/[theme]/Magento_Tax/templates/pricing/adjustment.phtml.

Then after don't forget to run this bellow command.

php bin/magento setup:upgrade

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.