Skip to main content
Source Link
Torben
  • 231
  • 3
  • 11

How to change a template file the right way?

I want to add an additional CSS class to my template which is located here:

app/design/frontend/default/ves_fashion/template/persistent/checkout/onepage/login.phtml

I am asking myself now what is the correct way in Magento?

Should I change the login.phtml in that directory above or should I create a duplicate of that login.phtml and add it to my own extension at: app/code/local/MyExtension/ShippingMethodExtension/Block/Checkout/Onepage/login.phtml

How can I then tell Magento that it should use the login.phtml of my extension and not the one from the persistent folder?

Would be great if someone can help me. Thanks!