0
我無法獲得ocmod擴展工作....我在ocmod擴展here上找到唯一的文檔文件,我認爲我遵循了規則,但仍然無法達到預期的效果... store.php文件中的變量對其他tpl文件不可見(main.tpl)開放式購物車2中的ocmod擴展
所以我想添加一個模板文件以顯示來自Store模塊的變量。模板文件位於/catalog/view/theme/journal2/template/journal2/menu/main.tpl
我的代碼是:
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Store Allstores Modification</name>
<code>AC_Store_Allstores</code>
<version>1.0</version>
<author>AC</author>
<link></link>
<file path="catalog/controller/module/store.php">
<operation>
<search><![CDATA[
return $this->load->view($this->config->get('config_template') . '/template/module/store.tpl', $data);
]]></search>
<add position="After"><![CDATA[
$this->load->view($this->config->get('config_template') . '/template/journal2/menu/main.tpl', $data);
]]></add>
</operation>
</file>
</modification>
莫非
有人點我做錯了什麼在這裏?
事實上,我在實際的文件中有這個標籤。但它不起作用。它不會破壞任何東西,但所需的變量在main.tpl中不可用。欲瞭解更多信息:模塊商店已啓用,但未分配給任何佈局。該網站使用主題日記2.我 –