I am working on a payment module for an OpenCart 1.5 site, but there is a vQmod installed that adds a table row with an option for all payment modules. However, the way the vQmod is set up is such that it add these rows just before the </table>
tag but because there are two tables on my payment module settings page, it adds the row twice.
<file name="admin/view/template/payment/*.tpl">
<operation error="skip">
<search position="before" index="1"><![CDATA[
</table>
]]></search>
<ignoreif><![CDATA[
Braintree Payment Gateway v156.4
]]></ignoreif>
<add><![CDATA[
<tr>
<td><?php echo $entry_paid_status; ?></td>
<td>
<?php if ($field_value) { ?>
<input type="radio" name="<?php echo $classname; ?>_paid_status" value="1" checked="checked" /><?php echo $text_paid; ?>
<input type="radio" name="<?php echo $classname; ?>_paid_status" value="0" /><?php echo $text_unpaid; ?>
<?php } else { ?>
<input type="radio" name="<?php echo $classname; ?>_paid_status" value="1" /><?php echo $text_paid; ?>
<input type="radio" name="<?php echo $classname; ?>_paid_status" value="0" checked="checked" /><?php echo $text_unpaid; ?>
<?php } ?>
</td>
</tr>
]]></add>
</operation>
...
</file>
Basically, it adds a row for something called 'Paid Status' - which isn't really needed for my payment module, but it's not a problem if it is added - but since it adds it before </table>
and my module has this tag twice, it gets added twice.
I have noticed the <ignoreif>
tag - but I'm not sure how this works (I'm not overly familiar with vQmods) I tried adding the name of my payment module in there, but it makes no difference.
Basically what I'm asking is, is there any way to exclude this code from being added to my module? Before anyone suggests, I can't take out the tables, they are needed for this page.
Thank you