Magento-编辑帐户信息屏幕的更改不会得到反映
我有我的自定义主题,我想在其中对“编辑帐户信息”屏幕进行更改。我已尝试修改此文件: customer/form/edit.phtml 我对此文件所做的任何更改都不会得到反映。我甚至从基本主题和自定义主题中删除了所有customer/form/edit.phtml文件。即使如此,屏幕仍会渲染 这是my customer.xml文件中的相关代码:Magento-编辑帐户信息屏幕的更改不会得到反映,magento,themes,Magento,Themes,我有我的自定义主题,我想在其中对“编辑帐户信息”屏幕进行更改。我已尝试修改此文件: customer/form/edit.phtml 我对此文件所做的任何更改都不会得到反映。我甚至从基本主题和自定义主题中删除了所有customer/form/edit.phtml文件。即使如此,屏幕仍会渲染 这是my customer.xml文件中的相关代码: <customer_account_edit translate="label"> <label>Customer Acc
<customer_account_edit translate="label">
<label>Customer Account Edit Form</label>
<update handle="customer_account"/>
<reference name="root">
<action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
</reference>
<reference name="my.account.wrapper">
<block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
</reference>
<reference name="left">
<action method="unsetChild"><name>left.permanent.callout</name></action>
</reference>
</customer_account_edit>
客户账户编辑表
编辑帐户信息
左.永久.标注
我缺少什么?当自定义主题中缺少文件时,模板系统会退回到默认/基本主题中的等效文件。此外,Magento会将其缓存,以便在引入新文件时不会立即注意到,而是继续使用基本文件。确保在开发时关闭所有缓存。我发现了发生的情况。我安装了一个扩展,其代码如下:
<customer_account_edit translate="label">
<reference name="head">
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name></action>
</reference>
<reference name="content">
<block type="core/html_calendar" name="head.calendar" as="html_calendar" template="aitcheckoutfields/js/calendar.phtml"/>
</reference>
<reference name="customer_edit">
<action method="setTemplate"><template>aitcommonfiles/design--frontend--base--default--template--customer--form--edit.phtml</template></action>
</reference>
</customer_account_edit>
js_csscalendar/calendar-win2k-1.css
jscalendar/calendar.js
jscalendar/calendar-setup.js
aitcommonfiles/design--frontend--base--default--template--customer--form--edit.phtml
我注释掉了这段代码,现在我的edit.phtml被用来呈现表单。但是,我仍然不明白这指的是哪个phtml文件?Aitoc有时会使用一种时髦的重写方法为其模块生成模板文件。我也遇到了同样的问题,最终在/var/ait_patch/design/frontend/default/default/template/aitcomonfiles中找到了我的.phtml文件。我应该提到我确实禁用了缓存。从这一点来看,您要查找的文件可能是
app/design/frontend/base/default/template/aitcomonfiles/design--frontend--base--default--template--customer--form--edit.phtml
。用来找出答案。