Помогите советом. Пыиюсь заменить несколько строк с помощью OCMOD в OC 2 . если одну менять , то все рилииет, а если в search несколько строк добавить, то не рилииет.
Пример который не рилииет:
<operation>
<search><![CDATA[
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/address_form.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/account/address_form.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/account/address_form.tpl', $data));
}
]]></search>
<add position="replace"><![CDATA[
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/custom_address_form.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/account/custom_address_form.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/account/custom_address_form.tpl', $data));
}
]]></add>
</operation>