sergejDrobot / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

vqmod won't help on admin/view/template/sale/order_info.tpl #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First of all, let's say that vqmod rocks! I'm a happy user moving from patch to 
vqmod.

I'm trying to make change to this file:
admin/view/template/sale/order_info.tpl

Here is a simple operation:
<file name="admin/view/template/sale/order_info.tpl">
        <operation>
            <search position="top" offset="1"/>
            <add><![CDATA[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]]></add>
        </operation>
    </file>

VQmod didn't do its magic, no thing in the cache..

Note, that this is the only file which is stuck.

Is there something special with tpl files?

vQmod Version: 2.1.6
Server Operating System: Debian Squeeze

Thanks and keep up the good work.

Original issue reported on code.google.com by reda.abdi on 16 Mar 2012 at 8:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Try using a proper tag instead of a single tag for the <search>, so use
<search position="top" offset="1"></search>

Original comment by DJG6...@gmail.com on 16 Mar 2012 at 10:06

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for your prompt response.

I was not accessing the web page that make use of order_info.tpl so vqmod was 
not generating it. 

I had to click on the order item to get my file generated in the cache.

Mea culpa.

However I would suggest a log attribute on the <modification> tag, that when 
you set its value to the "debug" level, vqmod logs verbose information for each 
request:

- php page being viewed (if possible)
- rules parsed successfully
- rules containing errors
- rules applied
- rules ignored

BTW, the standalone <search> tag works ;)

Original comment by reda.abdi on 17 Mar 2012 at 11:36

GoogleCodeExporter commented 8 years ago
yeah I guessed it was working, but had to be sure. The debug attribute is an 
interesting one and may be considered for a future release

Original comment by DJG6...@gmail.com on 17 Mar 2012 at 11:39