Xml 自定义模块禁用/启用在管理-Magento中不工作
我正在名称空间Stallioni中创建一个名为“standingorders”的自定义模块 我的app/etc/modules/Stallioni_Standingorders.xml是:Xml 自定义模块禁用/启用在管理-Magento中不工作,xml,magento,layout,Xml,Magento,Layout,我正在名称空间Stallioni中创建一个名为“standingorders”的自定义模块 我的app/etc/modules/Stallioni_Standingorders.xml是: <?xml version="1.0"?> <config> <modules> <Stallioni_Standingorders> <active>true</active>
<?xml version="1.0"?>
<config>
<modules>
<Stallioni_Standingorders>
<active>true</active>
<codePool>local</codePool>
<depends>
<Mage_Core />
<Mage_Checkout/>
<Mage_Customer />
<Mage_Sales />
<Mage_Adminhtml/>
</depends>
</Stallioni_Standingorders>
</modules>
</config>
真的
地方的
我的app/code/local/Stallioni/Standingorders/etc/config.xml是:
<?xml version="1.0"?>
<config>
<modules>
<Stallioni_Standingorders>
<version>0.1.0</version>
</Stallioni_Standingorders>
</modules>
<frontend>
<routers>
<standingorders>
<use>standard</use>
<args>
<module>Stallioni_Standingorders</module>
<frontName>standingorders</frontName>
</args>
</standingorders>
</routers>
<layout>
<updates>
<standingorders>
<file>standingorders.xml</file>
</standingorders>
</updates>
</layout>
</frontend>
<global>
<models>
<standingorders>
<class>Stallioni_Standingorders_Model</class>
<resourceModel>standingorders_mysql4</resourceModel>
</standingorders>
<standingorders_mysql4>
<class>Stallioni_Standingorders_Model_Mysql4</class>
<entities>
<standingorders>
<table>standingorders</table>
</standingorders>
</entities>
</standingorders_mysql4>
</models>
<resources>
<standingorders_setup>
<setup>
<module>Stallioni_Standingorders</module>
</setup>
<connection>
<use>core_setup</use>
</connection>
</standingorders_setup>
<standingorders_write>
<connection>
<use>core_write</use>
</connection>
</standingorders_write>
<standingorders_read>
<connection>
<use>core_read</use>
</connection>
</standingorders_read>
</resources>
<blocks>
<standingorders>
<class>Stallioni_Standingorders_Block</class>
</standingorders>
</blocks>
<helpers>
<standingorders>
<class>Stallioni_Standingorders_Helper</class>
</standingorders>
</helpers>
</global>
</config>
0.1.0
标准
史泰利奥尼·欧标准订单
站立顺序
standingorders.xml
Stallioni\u标准订单\u模型
标准订单4
Stallioni_Standingorders_Model_Mysql4
站立顺序
史泰利奥尼·欧标准订单
核心单元设置
核心写入
核心读取
Stallioni_Standingorders_区块
Stallioni_Standingorders_Helper
在default/default/template/standingorders/checkout/cart/item/default.phtml中,我已经覆盖了base/default/template/checkout/cart/item/default.phtml
我的layout/standingorders.xml文件是:
<?xml version="1.0" encoding="utf-8"?>
<layout version="0.1.0">
<standingorders_index_index>
<reference name="content">
<block type="standingorders/standingorders" name="standingorders" />
</reference>
</standingorders_index_index>
<checkout_cart_index>
<reference name="head">
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params></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>
<block type="core/html_calendar" name="head.calendar" as="calendar" template="page/js/calendar.phtml"></block>
</reference>
<reference name="checkout.cart">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block>
<template>standingorders/checkout/cart/item/default.phtml</template>
</action>
</reference>
</checkout_cart_index>
<standingorders_ajax_index>
<block type="standingorders/standingorders" name="root" output="toHtml" template="standingorders/checkout/cart/item/call.php" />
</standingorders_ajax_index>
<checkout_onepage_review>
<reference>
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block>
<template>standingorders/checkout/onepage/review/item.phtml</template>
</action>
</reference>
</checkout_onepage_review>
</layout>
js_csscalendar/calendar-win2k-1.css
jscalendar/calendar.js
jscalendar/calendar-setup.js
simplecheckout/cart\u项目\u渲染器
standingorders/checkout/cart/item/default.phtml
默认签出/购物车项目渲染器
standingorders/checkout/onepage/review/item.phtml
我的问题是,当我在Configuration->Advanced选项卡中禁用Stallioni_Standingorders时,模块没有被禁用。它显示了我在default.phtml中进行的自定义。我已清除缓存,但仍出现问题。。谁来帮忙 我终于得到了答案。我没有重写模块中的块。我有超过100个Standingorders/Block/Standingorders/Cart/Item/Renderer。任何人请帮助。。Stackoverflow让我感到孤独:(尝试禁用缓存。感谢您的回复@Shatir,我尝试过,但现在仍然没有结果