[英]How to make a xml file in opencart for edit and model and controller
I am new to Open cart and working with VQmod and tried this code for editing my header logo and some text. 我是Open购物车的新手,正在使用VQmod,并尝试使用此代码来编辑标题徽标和一些文本。
<file name="catalog/view/theme/shopitout/template/common/header.tpl" error="abort">
<operation info="">
<search position="Replace" offset="" ><![CDATA[<img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" />]]></search>
<add><![CDATA[<img src="image/data/my_logo.png" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" />]]></add>
</operation>
</file>
</modification>
Now i want to write such code for edit a controller and model. 现在我想编写这样的代码来编辑控制器和模型。
please tell how can we make such code or xml for model and controller. 请告诉我们如何为模型和控制器制作这样的代码或xml。
In between </file>
and </modification>
tags add: 在
</file>
和</modification>
标签之间添加:
<file name="###File name with path of controller/ model file ###" >
<operation info="###Operation Info###" >
<search position="###Search/Replace filter###" regex="false" ><![CDATA[###Search Code###]]></search>
<add><![CDATA[
###Add Code###
]]></add>
</operation>
</file>
Reference link: Opencart Vqmod tutorial 参考链接: Opencart Vqmod教程
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.