Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix "DOM UNABLE TO LOAD" error of vqmod in opencart
    text
    copied!<p>I want to add a new submenu under the catalog in the admin of the opencart using Vqmod. Here is my code: </p> <pre><code>&lt;modification&gt; &lt;id&gt;add menu&lt;/id&gt; &lt;author&gt;XXX&lt;/author&gt; &lt;version&gt;2.3&lt;/version&gt; &lt;vqmver&gt;1.0.8&lt;/vqmver&gt; &lt;!-- OPTION CONTROLLER --&gt; &lt;file name="admin/controller/common/header.php"&gt; &lt;operation&gt; &lt;search position="after"&gt;&lt;![CDATA[ $this-&gt;data['text_newmenu'] = $this-&gt;language-&gt;get('text_newmenu'); ]]&gt;&lt;/search&gt; &lt;add&gt;&lt;![CDATA[ $this-&gt;data['text_newmenu'] = $this-&gt;language-&gt;get('text_newmenu'); ]]&gt;&lt;/add&gt; &lt;/operation&gt; &lt;operation&gt; &lt;search position="after"&gt;&lt;![CDATA[ $this-&gt;data['doctor'] = $this-&gt;url-&gt;link('catalog/doctor', 'token=' . $this-&gt;session-&gt;data['token'], 'SSL'); ]]&gt;&lt;/search&gt; &lt;add&gt;&lt;![CDATA[ $this-&gt;data['newmenu'] = $this-&gt;url-&gt;link('catalog/newmenu', 'token=' . $this-&gt;session-&gt;data['token'], 'SSL'); ]]&gt;&lt;/add&gt; &lt;/operation&gt; &lt;/file&gt; &lt;!-- OPTION LANGUAGE --&gt; &lt;file name="admin/language/english/common/header.php"&gt; &lt;operation&gt; &lt;search position="after"&gt;&lt;![CDATA[ $_['text_zone'] = 'Zones'; ]]&gt;&lt;/search&gt; &lt;add&gt;&lt;![CDATA[ $_['entry_newmenu'] = 'Wow sexy'; ]]&gt;&lt;/add&gt; &lt;/operation&gt; &lt;/file&gt; &lt;!-- header.tpl for new menu--&gt; &lt;file name="admin/view/template/common/header.tpl"&gt; &lt;operation&gt; &lt;search position="after"&gt;&lt;![CDATA[ &lt;li&gt;&lt;a href="&lt;?php echo $doctor; ?&gt;"&gt;&lt;?php echo $text_doctor; ?&gt;&lt;/a&gt;&lt;/li&gt; ]]&gt;&lt;/search&gt; &lt;add&gt;&lt;![CDATA[ &lt;li&gt;&lt;a href="&lt;?php echo $newmenu; ?&gt;"&gt;&lt;?php echo $text_newmenu; ?&gt;&lt;/a&gt;&lt;/li&gt; ]]&gt;&lt;/add&gt; &lt;/operation&gt; &lt;/file&gt; &lt;modification&gt; </code></pre> <p>But there is an error comes in DOM UNABLE TO LOAD: <code>/opt/lampp/htdocs/work/oc/vqmod/xml/addmenu.xml</code> Does any one know whats the problem in my code?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload