In Magento 1.6, changes to login.phtml don’t reflect

蹲街弑〆低调 提交于 2020-01-13 08:31:06

问题


I customized the file app\design\frontend\base\default\template\checkout\onepage\login.phtml to hide the login fields in onepage checkout. It works well in 1.5 version.

When I do the same modifications in 1.6 version, nothing changes in the frontend. I observed that in 1.6 version, onepage.phtml is not using onepage\login.phtml unlike in 1.5. I did the basic checks of file location mistake(base\default and default\default) and cache refresh.

I am having trouble figuring out which login.phtml is being picked up in onepage.phtml in the line getChildHTML(’login’) [to display the login fields in checkout step 1].

Thanks in advance.


回答1:


Your problem may be related to the following Thread http://www.magentocommerce.com/boards/viewthread/243571/ about Persistent Shopping Cart.

I encoutered a similar issue because of the template override name:

  • before 1.6, my template override was: frontend/default//template/customer/form/login.phtml
  • 1.6: frontend/default//template/persistent/customer/form/login.phtml Elsewhere you can find the default template path from 1.6 : frontend/base/default/template/persistent/customer/form/login.phtml

For more information about Persistent Shopping Cart, please refer to http://www.magentocommerce.com/blog/comments/persistent-shopping-cart-customer-segmentation-just-getting-better/




回答2:


a) Do Not ever edit anything in Base, man!

b) Configuration -> Developer, Switch to Website or store or store view scope, turn on Template path hints, Look into your Frontend, you'll See The path!



来源:https://stackoverflow.com/questions/7538376/in-magento-1-6-changes-to-login-phtml-don-t-reflect

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!