如何在opencart中制作xml文件以进行编辑,建模和控制 [英] How to make a xml file in opencart for edit and model and controller

查看:143
本文介绍了如何在opencart中制作xml文件以进行编辑,建模和控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Open购物车的新手,正在使用VQmod,并尝试使用此代码来编辑标题徽标和一些文本.

I am new to Open cart and working with VQmod and tried this code for editing my header logo and some text.

        <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.

请告诉我们如何为模型和控制器制作这样的代码或xml.

please tell how can we make such code or xml for model and controller.

推荐答案

</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>

参考链接:Opencart Vqmod教程

这篇关于如何在opencart中制作xml文件以进行编辑,建模和控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆