Using VQMod offset properly

Neenoheenna

New Member
I am creating a small VQMod for OpenCartI want to search for a piece of code with mulitple lines however I can't figure out the right offset value to do so.I was reading the vqmod manual and they recommend you count the ammount of lines then subtract the number of lines by 1 to determine the offset however it doesn't work for me?Here is my code\[code\]<modification> <id>xxx</id> <version>xxx</version> <vqmver>xxx</vqmver> <author>xxx</author> <file name="catalog/view/theme/*/template/account/register.tpl"> <operation> <search position="replace" offset="17"><![CDATA[ <tr> <td><?php echo $entry_company; ?></td> <td><input type="text" name="company" value="http://stackoverflow.com/questions/10965621/<?php echo $company; ?>" class="large-field" /></td> </tr> <tr id="company-id-display"> <td><span id="company-id-required" class="required">*</span> <?php echo $entry_company_id; ?></td> <td><input type="text" name="company_id" value="http://stackoverflow.com/questions/10965621/<?php echo $company_id; ?>" /> <?php if ($error_company_id) { ?> <span class="error"><?php echo $error_company_id; ?></span> <?php } ?></td> </tr> <tr id="tax-id-display"> <td><span id="tax-id-required" class="required">*</span> <?php echo $entry_tax_id; ?></td> <td><input type="text" name="tax_id" value="http://stackoverflow.com/questions/10965621/<?php echo $tax_id; ?>" /> <?php if ($error_tax_id) { ?> <span class="error"><?php echo $error_tax_id; ?></span> <?php } ?></td> </tr> ]]></search> <add><![CDATA[ <?php echo 'test'; ?> ]]></add> </operation> </file> </modification>\[/code\]I counted 18 lines and set my offset to 17.Am I going wrong somewhere.Will be great to hear back from you allThanksPeter
 
Back
Top