Question

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.

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

No correct solution

OTHER TIPS

In between </file> and </modification> tags add:

 <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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top