0
votes

i have opencart 1.5.5.1 web site with VqMod(latest) Vqmod running fine but i had a problem with one xml file.

xlm file has following lines

<file name="admin/view/template/common/header.tpl">
    <operation>               
        <search position="replace" offset="8"><![CDATA[
            <ul class="right" style="display: none;">
        ]]></search>                        
        <add><![CDATA[
            <ul class="right" style="display: none;">
                <li id="store"><a onClick="window.open('<?php echo $store; ?>');" class="top">

but result was shown below.

File Name    : admin/view/template/common/header.tpl(5)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <ul class="right" style="display: none;">

there is a line <ul class="right" style="display: none;">in header.tpl but xml code is not working

2
you can search value for replace this value is not exist on header.tplRavi Patel
Thanks but the value is exist On Header.tplSeyit Kaya
finally i get solution for your Question for replace your some value on admin header see the code access direct on your vqmode.Ravi Patel
i tried your code and its working on my setup, it might be possible ( i am not sure how vqmod tackle this problem) that line you are searching is already replaced by some other vqmod, so check in your vqcache header.tpl that this line exist or notChetan Paliwal

2 Answers

0
votes

Add this code for your replace you want hear:

<file name="admin/view/template/common/header.tpl">
    <operation>
        <search position="replace"><![CDATA[
            <li id="store"><a href="<?php echo $store; ?>" target="_blank" class="top"><?php echo $text_front; ?></a>
        ]]></search>
        <add><![CDATA[
                <li id="store"><a onClick="window.open('<?php echo $store; ?>');" class="top"><?php echo $text_front; ?></a>
        ]]>
        </add>
    </operation>
</file>
0
votes

This value " <ul class="right" style="display: none;">" is not exactly on this file admin/view/template/common/header.tpl

Perhaps any other extension changes this file.

Also, you can try to quit this part - offset="8" , here:

<search position="replace" offset="8">

replace for:

<search position="replace">

I tried this, and it is good.