<?xml version="1.0" encoding="utf-8"?>
<modification>
    <name>X-Payment</name>
    <code>xpayment</code>
    <version>4.2.5</version>
    <author>OpenCartMart</author>
    <link>http://www.opencartmart.com</link>
    <file path="admin/controller/extension/extension/payment.php"> 
        <operation error="log">
            <search><![CDATA[ $data['extensions'][ ]]></search>
            <add position="before"><![CDATA[
               if (preg_match('/xpayment\d+/', $extension)) continue;
            ]]></add>
        </operation> 
    </file>
    <file path="catalog/view/theme/*/template/account/order_info.{twig,tpl}"> 
        <operation error="log">
            <search regex="true"><![CDATA[ /^.*if.*comment.*$/m ]]></search>
            <add position="replace"><![CDATA[
                 {{ payment_instruction }}
                 $0
            ]]></add>
        </operation> 
    </file>
</modification>