title: OpenCart2 vqmod replace,before and after all replacing?
body: <p>Please take a look at the following xml file in the vqmod folder.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;modification&gt;
          &lt;id&gt;Drop Shipping&lt;/id&gt;
          &lt;version&gt;2.0.0&lt;/version&gt;
          &lt;vqmver required="true"&gt;2.4.0&lt;/vqmver&gt;
          &lt;author&gt;South Coast Hosting Services (Pty) Ltd&lt;/author&gt;
          &lt;file name="admin/language/*/common/menu.php"&gt;
              &lt;operation error="log"&gt;
                  &lt;search&gt;&lt;![CDATA[// Text]]&gt;&lt;/search&gt;
                  &lt;add position="after"&gt;&lt;![CDATA[
                  $_['text_gdropship_menu'] = 'Drop Shipping';
                  $_['text_gdropship_setup'] = 'Drop Shipping Setup';
                  ]]&gt;&lt;/add&gt;
              &lt;/operation&gt;
          &lt;/file&gt;
          &lt;file name="admin/controller/common/menu.php"&gt;
              &lt;operation error="log"&gt;
                  &lt;search &gt;&lt;![CDATA[$this-&gt;load-&gt;language('common/menu');]]&gt;&lt;/search&gt;
                  &lt;add position="after"&gt;&lt;![CDATA[
                  $data['text_gdropship_setup'] = $this-&gt;language-&gt;get('text_gdropship_setup');
                  $data['text_gdropship_menu'] = $this-&gt;language-&gt;get('text_gdropship_menu'); 
                  ]]&gt;&lt;/add&gt;
              &lt;/operation&gt;
              &lt;operation error="log"&gt;
                  &lt;search&gt;&lt;![CDATA[$data['home'] = $this-&gt;url-&gt;link('common/dashboard', 'token=' . $this-&gt;session-&gt;data['token'], 'SSL');]]&gt;&lt;/search&gt;
                  &lt;add position="before"&gt;&lt;![CDATA[
                      $data['gdropshipmenu'] = $this-&gt;url-&gt;link('custom/gdropship', 'token=' . $this-&gt;session-&gt;data['token'], 'SSL');
                      $data['home'] = $this-&gt;url-&gt;link('common/dashboard', 'token=' . $this-&gt;session-&gt;data['token'], 'SSL');
                  ]]&gt;&lt;/add&gt;
              &lt;/operation&gt;
          &lt;/file&gt;
          &lt;file name="admin/view/template/common/menu.tpl"&gt;
              &lt;operation error="log"&gt;
                  &lt;search&gt;&lt;![CDATA[&lt;li id="system"&gt;&lt;a class="parent"&gt;&lt;i class="fa fa-cog fa-fw"&gt;&lt;/i&gt; &lt;span&gt;&lt;?php echo $text_system; ?&gt;&lt;/span&gt;&lt;/a&gt;]]&gt;&lt;/search&gt;
                  &lt;add position="before"&gt;&lt;![CDATA[&lt;li&gt;&lt;a class="parent"&gt;&lt;i class="fa fa-share-alt fa-fw"&gt;&lt;/i&gt;&lt;span&gt;&lt;?php echo $text_gdropship_menu; ?&gt;&lt;span&gt;&lt;/a&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="&lt;?php echo $gdropshipmenu; ?&gt;"&gt;&lt;?php echo $text_gdropship_setup; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;&lt;li id="system"&gt;&lt;a class="parent"&gt;&lt;i class="fa fa-cog fa-fw"&gt;&lt;/i&gt; &lt;span&gt;&lt;?php echo $text_system; ?&gt;&lt;/span&gt;&lt;/a&gt;]]&gt;&lt;/add&gt;
              &lt;/operation&gt;
          &lt;/file&gt;
      &lt;/modification&gt;
  </code></pre>
  
  <p>This runs perfectly, linking to an admin page create in <a href="https://stackoverflow.com/questions/26542701/adding-an-admin-page-on-opencart-version-2/26544051#26544051">this question</a>. You will see that the position tags contain 'after' and 'before' options. My problem is (besides taking all day to figure this out and do these few lines) is that both these tags seem to replace instead of doing a before or after. Changing them to replace has no effect. Hence I just included the code I was 'After-ing'.</p>
  
  <p><strong>So my question is have I done something wrong with the above code</strong>? I would just like to clarify before proceeding with development so it does not bite me down the line. It could be just another OC2 newbie.</p>
  
  <p>Thank you.</p>
  
  <p>PS Perhapse considering what's new a new tag for Opencart2 is warranted?</p>