{"id":313529,"date":"2020-11-21T15:00:57","date_gmt":"2020-11-21T15:00:57","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=313529"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=313529","title":{"rendered":"\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 ocmod-\u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u043d\u0430 Opencart"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0420\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432 Opencart \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445, \u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u044d\u0442\u0443 CMS \u0434\u0430\u0442\u044c \u043d\u0430 \u043e\u0442\u043a\u0443\u043f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c? \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u043b\u043e \u0431\u044b \u0436\u0438\u0437\u043d\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u0434 Opencart, \u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f:<\/p>\n<p>  \u0424\u043e\u0440\u043c\u0430\u0442 ocmod \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u0440\u0438\u0447\u0435\u043c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0438\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0447\u0430\u0441\u0442\u0435\u0439 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u2013 \u044d\u0442\u043e XML-\u0444\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u0432 \u043a\u0430\u043a\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 ocmod-\u0444\u0430\u0439\u043b\u0430 (\u0432\u0437\u044f\u0442\u043e \u0441 ocmod.net, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0442\u0430\u043c \u0436\u0435):<\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;modification&gt;     &lt;name&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0432 \u0442\u043e\u0432\u0430\u0440\u0435&lt;\/name&gt;     &lt;code&gt;product-page-views&lt;\/code&gt;     &lt;version&gt;1.0&lt;\/version&gt;     &lt;author&gt;https:\/\/ocmod.net&lt;\/author&gt;     &lt;link&gt;https:\/\/ocmod.net&lt;\/link&gt;     &lt;file path=&quot;catalog\/controller\/product\/product.php&quot;&gt;         &lt;operation&gt;             &lt;search&gt;                 &lt;![CDATA[$data['images'] = array();]]&gt;             &lt;\/search&gt;             &lt;add position=&quot;after&quot;&gt;                 &lt;![CDATA[                 \t$data['view'] = $product_info['viewed'];                 ]]&gt;             &lt;\/add&gt;         &lt;\/operation&gt;     &lt;\/file&gt;     &lt;file path=&quot;catalog\/language\/en-gb\/product\/product.php&quot;&gt;         &lt;operation&gt;             &lt;search&gt;                 &lt;![CDATA[$_['text_search']]]&gt;             &lt;\/search&gt;             &lt;add position=&quot;before&quot;&gt;                 &lt;![CDATA[                 \t$_['text_view']              = 'View: ';                 ]]&gt;             &lt;\/add&gt;         &lt;\/operation&gt;     &lt;\/file&gt; &lt;\/modification&gt; <\/code><\/pre>\n<p>  \u0412 \u043e\u0431\u0449\u0438\u0445 \u0447\u0435\u0440\u0442\u0430\u0445 \u0437\u0430\u0434\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"xml\">&lt;file path=&quot;\u0432 \u043a\u0430\u043a\u043e\u043c \u0444\u0430\u0439\u043b\u0435&quot;&gt;         &lt;operation&gt;             &lt;search&gt;&lt;![CDATA[\u0447\u0442\u043e \u0438\u0449\u0435\u043c]]&gt;&lt;\/search&gt;             &lt;add position=&quot;\u0433\u0434\u0435 \u2013 \u043f\u0435\u0440\u0435\u0434, \u043f\u043e\u0441\u043b\u0435 \u0438\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e&quot;&gt;                 &lt;![CDATA[\u0447\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043b\u0438 \u0447\u0435\u043c \u0437\u0430\u043c\u0435\u0449\u0430\u0435\u043c]]&gt;             &lt;\/add&gt;         &lt;\/operation&gt;     &lt;\/file&gt; <\/code><\/pre>\n<p>  \u0425\u043e\u0442\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u0435\u043d, \u0432\u0441\u0442\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441: \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432\u0435\u0434\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0430 \u043d\u0435 <s>\u043e\u043d\u0430\u043d\u0438\u0440<\/s>\u0433\u043b\u0443\u043f\u043e\u0439 \u0440\u0443\u0442\u0438\u043d\u043d\u043e\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p>  \u0412 \u0438\u0434\u0435\u0430\u043b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u0434 Opencart \u043c\u043e\u0433\u043b\u043e \u0431\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a: \u043c\u044b \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u00ab\u043d\u0435\u043f\u043e\u0440\u043e\u0447\u043d\u0443\u044e\u00bb \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u043f\u0440\u044f\u043c\u043e \u0432 \u0435\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 \u0432\u043d\u0435\u0441\u043b\u0438 \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u00ab\u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u0439\u00bb \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u043d\u0430\u043c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u0435\u0441\u044c ocmod. \u041d\u0430 \u0434\u0435\u043b\u0435 \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u044b \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2013 \u044d\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 (\u0442\u043e, \u0447\u0442\u043e \u043c\u0435\u0436\u0434\u0443 &lt;search&gt;\u2026&lt;\/search&gt;). \u042d\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0435\u0433\u043e \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0430\u0434\u043e. \u042d\u0442\u043e \u044f\u0432\u043d\u043e \u0440\u0443\u0447\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u043e.<\/p>\n<p>  \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435: \u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434, \u043f\u043e\u0441\u043b\u0435 \u0438\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0435, \u043d\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 (\u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 OCMOD \u0434\u043b\u044f Opencart). \u042d\u0442\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u043b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435. \u0422\u0430\u043a\u0436\u0435 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0433\u043e\u0432 &lt;search&gt; \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u2013 \u0432\u0435\u0434\u044c \u043f\u043e\u0438\u0441\u043a \u0431\u044b\u043b \u0431\u044b \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043e\u043a. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435 PHP, \u0442\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u043d\u0430\u0439\u0442\u0438 \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0435\u0439 \u043d\u0443\u0436\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u0430\u043a-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u041d\u043e \u044d\u0442\u043e\u0433\u043e \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u0430\u044e\u0441\u044c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u043f\u0440\u0430\u0432\u044c\u0442\u0435.<\/p>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f ocmod-\u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b. \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445, \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a-\u0442\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0448\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u2013 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430, \u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448 ocmod-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0430\u0434\u0440\u0435\u0441\u043d\u043e \u0432\u0441\u0435 \u0437\u043d\u0430\u043b. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u0441 \u0437\u043e\u0432\u0443\u0442 \u041f\u0435\u0442\u0440 \u041d\u0438\u043a\u043e\u043b\u0430\u0435\u0432\u0438\u0447 \u0418\u0432\u0430\u043d\u043e\u0432 (\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b). \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0433\u0430\u043c\u0438 &lt;PNI&gt;\u2026&lt;\/PNI&gt;, \u0430 \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u0433\u0438 \u043d\u0435 \u043f\u043e\u0440\u0442\u0438\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a, \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u044d\u0442\u0438 \u0442\u0435\u0433\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0442\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u043d\u0430\u0434 \u0444\u0430\u0439\u043b\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c. \u041c\u0435\u0436\u0434\u0443 \u0442\u0435\u0433\u0430\u043c\u0438 \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 &lt;search&gt;&lt;\/search&gt; \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043a\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 &lt;add&gt;&lt;\/add&gt;. \u0411\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435:<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 PHP:<\/p>\n<pre><code class=\"php\">\u2026 (\u0437\u0434\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 opencart) \u2026 \/\/ &lt;PNI&gt; \/\/ \u0430 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043d\u0430\u043c\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u0443\u0441\u043a\u043e\u0432 \u043a\u043e\u0434\u0430 \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 - \/\/ \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0438 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0438\u0441\u043a\u0430, \u0438 \u0441\u0430\u043c \u043a\u043e\u0434 (\u0432\u0441\u0435 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438) \/\/ &lt;search&gt; public function index() {&lt;\/search&gt; \/\/ &lt;add position=\u201dafter\u201d&gt; $x = 5; $y = 6; \/\/&lt;\/add&gt; &lt;\/PNI&gt; \u2026 <\/code><\/pre>\n<p>  \u0418\u043b\u0438 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">\u2026 (\u0437\u0434\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 opencart) \u2026 \/* &lt;PNI&gt;      &lt;search&gt; public function index() {&lt;\/search&gt;      &lt;add position=\u201dafter\u201d&gt; *\/ $x = 5; $y = 6; \/*&lt;\/add&gt; &lt;\/PNI&gt; *\/ \u2026 <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 &lt;search&gt; \u0438\u043b\u0438 &lt;add&gt; \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &lt;search index=\u201d1\u201d&gt;, \u0442\u043e \u043e\u043d\u0438 \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043d\u044b \u0432 \u043d\u0430\u0448 ocmod-\u0444\u0430\u0439\u043b. \u0422\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e XML-\u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u043a\u043e\u0434.<\/p>\n<p>  \u0415\u0449\u0435 \u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0436\u0435 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043d\u0430\u043c\u0438 twig-\u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"plaintext\">            {# &lt;PNI&gt;             &lt;search&gt;&lt;li&gt;&lt;span style=&quot;text-decoration: line-through;&quot;&gt;{{ price }}&lt;\/span&gt;&lt;\/li&gt;&lt;\/search&gt;             &lt;add position=&quot;replace&quot;&gt;             #}             &lt;li&gt;&lt;span class=&quot;combination-base-price&quot; style=&quot;text-decoration: line-through;&quot;&gt;{{ price }}&lt;\/span&gt;&lt;\/li&gt;             {# &lt;\/add&gt;&lt;\/PNI&gt; #} <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u043e\u0444\u043e\u0440\u043c\u0438\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0435 \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u0440\u0445\u0438\u0432\u0430\u0442\u043e\u0440. \u0414\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0441\u0432\u043e\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c: \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>  \u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 make-ocmod.opencart.local.cfg.php (\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 UTF-8, \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u043e\u0434 \u0441\u0435\u0431\u044f):<\/p>\n<pre><code class=\"php\">&lt;?php  define(&quot;ROOT_PATH&quot;, &quot;..\/..\/opencart.local&quot;);  define(&quot;ENCODING&quot;, &quot;utf-8&quot;); define(&quot;NAME&quot;, &quot;\u041c\u043e\u0439 ocmod&quot;); define(&quot;CODE&quot;, &quot;product-page-views&quot;); define(&quot;VERSION&quot;, &quot;1.0&quot;); define(&quot;AUTHOR&quot;, &quot;AS&quot;); define(&quot;LINK&quot;, &quot;&quot;);  define(&quot;TAG_OPERATION_BEGIN&quot;, &quot;&lt;PNI&gt;&quot;); define(&quot;TAG_OPERATION_END&quot;, &quot;&lt;\/PNI&gt;&quot;); define(&quot;TAG_SEARCH_BEGIN&quot;, &quot;&lt;search&quot;); \/\/ !! \u0431\u0435\u0437 &gt; define(&quot;TAG_SEARCH_END&quot;, &quot;&lt;\/search&gt;&quot;); define(&quot;TAG_ADD_BEGIN&quot;, &quot;&lt;add&quot;); \/\/ !! \u0431\u0435\u0437 &gt; define(&quot;TAG_ADD_END&quot;, &quot;&lt;\/add&gt;&quot;);  \/\/ \u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0435\u0433 \u043a\u043e\u043d\u0446\u0430 \u043a\u043e\u0434\u0430 &lt;\/add&gt; \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \/\/ (\u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434, \u0433\u0434\u0435 \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u0440\u0430\u0431\u043e\u0442\u0430\u043b). \/\/ \u042d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0441\u0435\u0447\u0435\u043d\u044b, \u0435\u0441\u043b\u0438 \/\/ \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 &lt;\/add&gt; (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \\t, \\r, \\n \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c) $commentsBegin = [ '\/\/', '\/*', '&lt;!--', '{#' ]; \/\/ \u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0435\u0433 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u0434\u0430 &lt;add&gt; \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \/\/ (\u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434, \u0433\u0434\u0435 \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u0440\u0430\u0431\u043e\u0442\u0430\u043b). \/\/ \u042d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0441\u0435\u0447\u0435\u043d\u044b, \u0435\u0441\u043b\u0438 \/\/ \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 &lt;add&gt; (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \\t, \\r, \\n \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c) $commentsEnd = [ '*\/', '--&gt;', '#}' ];  \/\/ \u0415\u0441\u043b\u0438 \u044d\u0442\u0438 \u043f\u043e\u0434\u0441\u0440\u043e\u043a\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0443\u0442\u0438, \u0442\u043e \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \/\/ \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c. $exclude = [ '\/cache\/', '\/cache-\/' ];  \/\/ \u042d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u044b \u0432 upload. \/\/ \u0417\u0434\u0435\u0441\u044c \u0432\u044b \u0443\u043a\u0430\u0436\u0435\u0442\u0435 \u0441\u0432\u043e\u0438 \u0444\u0430\u0439\u043b\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c. $upload = [   'admin\/view\/stylesheet\/combined-options.css',   'admin\/view\/javascript\/combined-options.js',   'catalog\/view\/theme\/default\/stylesheet\/combined-options.css',   'admin\/view\/image\/combined-options\/cross.png',   'catalog\/view\/javascript\/combined-options\/combined.js',   'catalog\/view\/javascript\/combined-options\/aswmultiselect.js',   'admin\/view\/image\/combined-options\/select.png' ];  \/\/ \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u043e \u0432 install.sql. \/\/ (\u0432 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Opencart \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f) $sql = &quot;&quot;;  ?&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2013 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 ocmod xml-\u0444\u0430\u0439\u043b\u0430.<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442 make-ocmod.php (\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 UTF-8):<\/p>\n<pre><code class=\"php\">&lt;?php  include_once ($argv[1]);  function processFile($fileName, $relativePath) {   global $commentsBegin, $commentsEnd, $xml, $exclude;    if ($exclude)     foreach ($exclude as $ex)       if (false !== strpos($relativePath, $ex))         return;    $text = file_get_contents($fileName);   $end = -1;   while (false !== ($begin = strpos($text, TAG_OPERATION_BEGIN, $end + 1))) {     $end = strpos($text, TAG_OPERATION_END, $begin + 1);     if (false === $end)       die (&quot;No close operation tag in &quot;.$fileName);     $search = false;     $searchEnd = $begin;     while (false !== ($searchBegin = strpos($text, TAG_SEARCH_BEGIN, $searchEnd + 1)) and $searchBegin &lt; $end) {       $searchBeginR = strpos($text, '&gt;', $searchBegin + 1);       $searchAttributes = substr($text, $searchBegin + strlen(TAG_SEARCH_BEGIN), $searchBeginR - $searchBegin - strlen(TAG_SEARCH_BEGIN));       if (false === $searchBeginR or $searchBeginR &gt;= $end)         die (&quot;Invalid search tag in &quot;.$fileName);       $searchEnd = strpos($text, TAG_SEARCH_END, $searchBeginR + 1);       if (false === $searchEnd or $searchEnd &gt;= $end)         die (&quot;No close search tag in &quot;.$fileName);       \/\/ \u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439       $search = substr($text, $searchBeginR + 1, $searchEnd - $searchBeginR - 1);     }     $addBegin = strpos($text, TAG_ADD_BEGIN, $begin + 1);     if (false === $addBegin or $addBegin &gt;= $end)       die (&quot;No begin add tag in &quot;.$fileName);     $addBeginR = strpos($text, '&gt;', $addBegin + 1);     $addAttributes = substr($text, $addBegin + strlen(TAG_ADD_BEGIN), $addBeginR - $addBegin - strlen(TAG_ADD_BEGIN));     if (false === $addBeginR or $addBeginR &gt;= $end)       die (&quot;Invalid add tag in &quot;.$fileName);     $addEnd = strpos($text, TAG_ADD_END, $addBeginR + 1);     if (false === $addEnd or $addEnd &gt;= $end)       die (&quot;No close add tag in &quot;.$fileName);     $codeBegin = $addBeginR + 1;     $codeEnd = $addEnd;     \/\/ \u0418\u043d\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u0435\u0433 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u0434\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c,     \/\/ \u0430 \u0442\u0435\u0433 \u043a\u043e\u043d\u0446\u0430 - \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c. \u0422\u043e\u0433\u0434\u0430 \u044d\u0442\u0438 \u0442\u0435\u0433\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.     $p = $codeBegin;     while (@$text[$p] === &quot; &quot; or @$text[$p] === &quot;\\t&quot; or @$text[$p] === &quot;\\r&quot; or @$text[$p] === &quot;\\n&quot;)       $p ++;     if ($p &lt; $addEnd) {       foreach ($commentsEnd as $tag)         if (substr($text, $p, strlen($tag)) === $tag)           $codeBegin = $p + strlen($tag);     }     $p = $codeEnd - 1;     while (@$text[$p] === &quot; &quot; or @$text[$p] === &quot;\\t&quot; or @$text[$p] === &quot;\\r&quot; or @$text[$p] === &quot;\\n&quot;)       $p --;     if ($p &gt;= $codeBegin) {       foreach ($commentsBegin as $tag)         if (substr($text, $p - strlen($tag) + 1, strlen($tag)) === $tag)           $codeEnd = $p - strlen($tag) + 1;     }     $code = substr($text, $codeBegin, $codeEnd - $codeBegin - 1);      $xml .= &quot;     &lt;file path=\\&quot;&quot;.str_replace('&quot;', '\\&quot;', $relativePath).&quot;\\&quot;&gt;         &lt;operation&gt;&quot;.(false !== $search ? &quot;             &lt;search{$searchAttributes}&gt;                 &lt;![CDATA[{$search}]]&gt;             &lt;\/search&gt;&quot; : &quot;&quot;).&quot;             &lt;add{$addAttributes}&gt;                 &lt;![CDATA[{$code}]]&gt;             &lt;\/add&gt;         &lt;\/operation&gt;     &lt;\/file&gt;&quot;;   } }  function processDir($dir, $relativePath = '') {   global $exclude;    $cdir = scandir($dir);   foreach ($cdir as $key =&gt; $value) {     if (!in_array($value,array(&quot;.&quot;, &quot;..&quot;))) {       $fileName = $dir . DIRECTORY_SEPARATOR . $value;       $newRelativePath = ($relativePath ? $relativePath.'\/' : '').$value;       $excluded = false;       if ($exclude)         foreach ($exclude as $ex)           $excluded = $excluded or false !== strpos($newRelativePath, $ex);       if ($excluded)         continue;       if (is_dir($fileName)) {         processDir($fileName, $newRelativePath);       } else {         processFile($fileName, $newRelativePath);       }     }   } }  function delTree($dir, $delRoot = false) {   $files = array_diff(scandir($dir), array('.','..'));   foreach ($files as $file) {     (is_dir(&quot;$dir\/$file&quot;)) ? delTree(&quot;$dir\/$file&quot;, true) : unlink(&quot;$dir\/$file&quot;);   }   return $delRoot ? rmdir($dir) : true; }  $xml = &quot;&lt;?xml version=\\&quot;1.0\\&quot; encoding=\\&quot;&quot;.ENCODING.&quot;\\&quot;?&gt; &lt;modification&gt;     &lt;name&gt;&quot;.NAME.&quot;&lt;\/name&gt;     &lt;code&gt;&quot;.CODE.&quot;&lt;\/code&gt;     &lt;version&gt;&quot;.VERSION.&quot;&lt;\/version&gt;     &lt;author&gt;&quot;.AUTHOR.&quot;&lt;\/author&gt;     &lt;link&gt;&quot;.LINK.&quot;&lt;\/link&gt;&quot;;  processDir(ROOT_PATH);  $xml .= &quot; &lt;\/modification&gt;&quot;;  file_put_contents('publish\/install.xml', $xml); file_put_contents('publish\/install.sql', $sql);  delTree('publish\/upload'); foreach ($upload as $file) {   $srcfile = ROOT_PATH.(@$file[0] === '\/' ? '' : '\/').$file;   $dstfile = 'publish\/upload'.(@$file[0] === '\/' ? '' : '\/').$file;   mkdir(dirname($dstfile), 0777, true);   copy($srcfile, $dstfile); }  ?&gt; <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u043a make-ocmod.cmd, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442:<\/p>\n<pre><code class=\"bash\">del \/f\/q\/s publish.ocmod.zip php make-ocmod.php make-ocmod.opencart.local.cfg.php cd publish ..\\7z.exe a -r -tZip ..\\publish.ocmod.zip *.* <\/code><\/pre>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e 7zip, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 7z.exe \u0434\u043e\u043b\u0436\u0435\u043d \u043b\u0435\u0436\u0430\u0442\u044c \u0442\u0430\u043c \u0436\u0435, \u0433\u0434\u0435 \u043d\u0430\u0448 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u043a. \u041a\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0436\u0435, \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"https:\/\/www.7-zip.org\/\" rel=\"nofollow\">https:\/\/www.7-zip.org\/<\/a>.<\/p>\n<p>  \u042d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u043a \u0434\u043b\u044f Windows. \u041a\u0442\u043e \u043f\u043e\u0434 Linux, \u0434\u0443\u043c\u0430\u044e, \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>  \u0420\u0435\u0437\u044e\u043c\u0435: \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u0430\u0432\u0438\u0442\u044c ocmod. \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u0434, \u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0442\u0435\u0433\u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430, \u0430 \u0434\u0430\u043b\u0435\u0435 \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u041d\u0430\u0441 \u0443\u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u043e\u0442\u0438\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 xml-\u0444\u0430\u0439\u043b\u0430, \u0430 \u043b\u044e\u0431\u043e\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u044b \u0432\u043d\u043e\u0441\u0438\u043c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, \u0442\u0443\u0442 \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043e\u0434\u043d\u0438\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 ocmod-\u0444\u0430\u0439\u043b.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/529186\/\"> https:\/\/habr.com\/ru\/post\/529186\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0420\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432 Opencart \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445, \u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u044d\u0442\u0443 CMS \u0434\u0430\u0442\u044c \u043d\u0430 \u043e\u0442\u043a\u0443\u043f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c? \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u043b\u043e \u0431\u044b \u0436\u0438\u0437\u043d\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u0434 Opencart, \u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-313529","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=313529"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313529\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=313529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=313529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=313529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}