edwinls / vqmod

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

search not found #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 

I   am new in opencart and in VQMODE. I have one issue that is when i am 
searching for div in template using VQMODE it shows me error that  is

---------- Date: 2013-12-24 05:16:51 ~ IP : 127.0.0.1 ----------
REQUEST URI : /open-156/index.php?route=product/product&product_id=40
MOD DETAILS:
   modFile   : D:\wamp\www\open-156\vqmod/xml/image_color_change.xml
   id        : Producat color change
   version   : 1.0
   vqmver    : 1.0

File Name    : catalog/view/theme/default/template/product/product.tpl(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <div class="left">
      <?php if ($thumb) { ?>
      <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
      <?php } ?>
      <?php if ($images) { ?>
      <div class="image-additional">
        <?php foreach ($images as $image) { ?>
        <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>
      </div>
      <?php } ?>
    </div>

when i search manually in notepad++ it shows me this whole div. can you any one 
solved me this issue. 
my code in xml file is:

<file name="catalog/view/theme/default/template/product/product.tpl">
             <operation>
                        <search position="after" ><![CDATA[<div class="left">
      <?php if ($thumb) { ?>
      <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
      <?php } ?>
      <?php if ($images) { ?>
      <div class="image-additional">
        <?php foreach ($images as $image) { ?>
        <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>
      </div>
      <?php } ?>
    </div>]]></search>
                        <add><![CDATA[ <?php echo "here we go"; ?> ]]></add>
              </operation>
        </file>

thanks in advance. i need urgently.. 

Original issue reported on code.google.com by ishansha...@gmail.com on 24 Dec 2013 at 5:38

GoogleCodeExporter commented 9 years ago
READ THE INSTRUCTIONS!

1. This is not for reporting your xmls aren't running correctly
2. VQMOD is a *SINGLE LINE* search

Original comment by DJG6...@gmail.com on 24 Dec 2013 at 12:14