New OCMOD i made : position="After" works like "Replace"
Posted: Wed May 13, 2015 5:30 pm
Hi again,
I I'm trying to add a string after a part of PHP code by:
But i obtain a replacement instead of a paste After :
I I'm trying to add a string after a part of PHP code by:
Code: Select all
<operation>
<search regex="false"><![CDATA[date_modified = NOW() WHERE product_id = '" . (int)$product_id . "'");]]></search>
<add position="After"><![CDATA[if (isset($data['image'])) {
$this->editImages($data['image'], $product_id);
}/*]]></add>
</operation>
is replaced bydate_modified = NOW() WHERE product_id =...
is it a bug or i missed something ?if (isset($data['image'])) {...