{"id":315038,"date":"2020-12-17T15:00:32","date_gmt":"2020-12-17T15:00:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=315038"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=315038","title":{"rendered":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 OpenCart"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u0435\u0433\u043e \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u0433\u0430.<\/p>\n<\/blockquote>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f&nbsp;\u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f OpenCart, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e&nbsp;<u>\u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435<\/u>. \u042d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435 \u0441&nbsp;<em>\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c<\/em>&nbsp;&#171;\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u043e\u0432\u0430\u0440 \u0438\u043b\u0438 \u043d\u0435\u0442&#187;. \u0412\u043e\u0442 \u0442\u0430\u043a \u0432 \u0438\u0442\u043e\u0433\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e42\/50e\/9f6\/e4250e9f61c0430a262e607f94fd6a68.png\" alt=\"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 OpenCart\" title=\"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 OpenCart\" width=\"1052\" height=\"358\"><figcaption>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 OpenCart<\/figcaption><\/figure>\n<\/p>\n<p>\u041d\u0435\u0434\u043e\u043b\u0433\u043e \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 \u0432\u044b\u044f\u0441\u043d\u0438\u043b, \u0447\u0442\u043e&nbsp;<em>\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438<\/em>&nbsp;OpenCart \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<a href=\"%D0%B2%D0%BE%D1%82\" rel=\"noopener noreferrer nofollow\">&nbsp;<\/a><a href=\"https:\/\/ocmod.net\/modul-dopolnitelnye-polya-v-tovare\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442<\/a>. \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 OpenCart \u0441\u0430\u043c\u043e\u043c\u0443.<\/p>\n<p><strong>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p><u>\u0437\u0430\u044e\u0437\u0430\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044f<\/u>&nbsp;(sku, upc, ean, jan, isbn, mpn)&nbsp;&#8212;&nbsp;<em>\u043f\u043e\u0447\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/em>, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0442\u043e-\u0442\u043e \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u044f\u0442\u043e\u0435 \u043d\u0430\u043c\u0438 \u043f\u043e\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u0432\u043c\u0435\u0448\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u0434 \u0434\u0432\u0438\u0436\u043a\u0430<\/u>&nbsp;&#8212;&nbsp;<em>\u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043c\u0430\u043b\u043e \u043a\u043e\u0434\u0430<\/em>, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e \u0438 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438 \u0441\u0430\u043c\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u044b      \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><u>\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c<\/u>&nbsp;&#8212;&nbsp;<em>\u0434\u043e\u043b\u044c\u0448\u0435, \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430<\/em>, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 OpenCart, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430&nbsp;(<em>\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u0436\u043e\u0440\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439<\/em>).<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c ProductMarkedField. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445&nbsp;\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u043f\u0440\u0438\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430&nbsp;\u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 OpenCart.<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435&nbsp;\u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0444\u043e\u0440\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043f\u0440\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f&nbsp;<u>\u043f\u043e\u043a\u0430\u0437\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u0430<\/u>&nbsp;\u0438&nbsp;<u>\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430<\/u>.<\/p>\n<p><em>\u041f\u0440\u043e \u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f opencart \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437, \u0430 \u043f\u043e\u043a\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0432 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u0435.<\/em><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430&nbsp; <em>admin\/controller\/extension\/module\/productmarkedfield.php<\/em>. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0443\u043b\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 &#171;\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439&#187;&nbsp;(\u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\/\u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c)&nbsp;\u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b&nbsp;<em>admin\/language\/ru-ru\/extension\/module\/productmarkedfield.php<\/em>&nbsp;\u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:<\/p>\n<pre><code class=\"php\">&lt;?php $_['heading_title'] = '\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \"\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430\"';<\/code><\/pre>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f<\/h4>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 install \u043d\u0443\u0436\u043d\u043e&nbsp;\u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443&nbsp;product:&nbsp;<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"oc_product` ADD `marked` TINYINT UNSIGNED NOT NULL DEFAULT '0';\");<\/code><\/pre>\n<p>\u0412 ocStore 2.3.x \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0432 ocStore 3.0.2.0 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 MySQL 8, \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/023\/f73\/405\/023f73405cd979ea912d3709fe6da354.png\" width=\"350\" height=\"295\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430 date_available:<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"product` CHANGE `date_available` `date_available` DATE NOT NULL;\");<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c&nbsp;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u044b \u043c\u043e\u0433\u043b\u0438&nbsp;<u>\u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u0430<\/u>&nbsp;\u0438&nbsp;<u>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/u>&nbsp;(\u0434\u043b\u044f ocStore 2.3.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('extension\/event');   \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435 \"\u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0442\u043e\u0432\u0430\u0440\u0430\" - \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442) $this-&gt;model_extension_event-&gt;addEvent(   'productmarkedfield', \/\/\u043a\u043e\u0434, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f   'admin\/view\/catalog\/product_form\/after', \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435    'extension\/module\/productmarkedfield\/eventProductFormAfter' \/\/\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a );   \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435 \"\u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430\" - \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 $this-&gt;model_extension_event-&gt;addEvent(   'productmarkedfield',    'admin\/model\/catalog\/product\/editProduct\/after',    'extension\/module\/productmarkedfield\/eventProductEditAfter' );<\/code><\/pre>\n<p>\u0414\u043b\u044f ocStore 3.0.x \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('setting\/event');<\/code><\/pre>\n<p>\u0418 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 model_extension_event \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c model_setting_event \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<h3>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430<\/h3>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0442\u043e\u0432\u0430\u0440\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438&nbsp;<em>admin\/view\/template\/catalog\/product_form.twig<\/em>. \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c 3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"sql\">public function eventProductFormAfter( &amp;$route, &amp;$args, \/\/\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d &amp;$output\/\/html \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b )<\/code><\/pre>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u0440\u0435\u0442\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 &amp;$output, \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f&nbsp;<a href=\"https:\/\/sourceforge.net\/projects\/simplehtmldom\/\" rel=\"noopener noreferrer nofollow\">Simple HTML DOM<\/a>, \u0438&nbsp;<a href=\"https:\/\/simplehtmldom.sourceforge.io\/manual.htm\" rel=\"noopener noreferrer nofollow\">\u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043c\u0430\u043d\u0443\u0430\u043b<\/a>. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u043a\u043b\u0430\u0434\u0451\u043c \u0435\u0433\u043e \u0432 system\/library, \u0430 \u0432 \u043a\u043e\u0434\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c&nbsp;(@ \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438):<\/p>\n<pre><code class=\"php\">@$this-&gt;load-&gt;library('simple_html_dom');<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c id \u0442\u043e\u0432\u0430\u0440\u0430.&nbsp;(\u0418\u0441\u043a\u0430\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043d\u043e id \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432 $args \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b):<\/p>\n<pre><code class=\"php\">preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch); $idProdict = $aMatch[1];<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u0442\u043e\u0432\u0430\u0440 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u0432\u0430\u0440\u0435&nbsp;(\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 product \u0438 product_description):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('catalog\/product'); $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProdict);<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u0432\u0430\u0440\u0430, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430, \u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d id \u0435\u0449\u0435 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"php\">$isMarked = false; if(preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch)) {     $idProduct = $aMatch[1];     $this-&gt;load-&gt;model('catalog\/product');     $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProduct);     $isMarked = $aProduct[\"marked\"]; }<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e isMarked, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e false \u0438 \u0435\u0441\u043b\u0438 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 id \u0442\u043e\u0432\u0430\u0440\u0430, \u0442\u043e\u0433\u0434\u0430 \u0432 isMarked \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Simple HTML DOM \u043d\u0430\u0439\u0434\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &#171;\u0414\u0430\u043d\u043d\u044b\u0435&#187; \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0441\u0430\u043c\u043e\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \u043d\u0430\u0448\u0435 \u043f\u043e\u043b\u0435 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e gui \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432&nbsp;<em>admin\/view\/template\/catalog\/product_form.twig<\/em>&nbsp;(\u0432 ocStore 2.3.x tpl \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0442 Twig):<\/p>\n<pre><code class=\"php\">$html = str_get_html($output); $html-&gt;find('div#tab-data', 0)-&gt;innertext =  '&lt;div class=\"form-group\"&gt;     &lt;label class=\"col-sm-2 control-label\"&gt;\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d&lt;\/label&gt;     &lt;div class=\"col-sm-10\"&gt;         &lt;label class=\"radio-inline\"&gt;             &lt;input type=\"radio\" name=\"marked\" value=\"1\" '.($aProduct[\"marked\"] ? 'checked=\"checked\"' : \"\").'&gt;\u0414\u0430         &lt;\/label&gt;         &lt;label class=\"radio-inline\"&gt;             &lt;input type=\"radio\" name=\"marked\" value=\"0\" '.(!$aProduct[\"marked\"] ? 'checked=\"checked\"' : \"\").'&gt;\u041d\u0435\u0442         &lt;\/label&gt;     &lt;\/div&gt; &lt;\/div&gt;' . $html-&gt;find('div#tab-data', 0)-&gt;innertext;<\/code><\/pre>\n<p>\u041a\u043e\u0434 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c:<\/p>\n<pre><code class=\"php\">public function eventProductFormAfter(&amp;$route, &amp;$args, &amp;$output) {     @$this-&gt;load-&gt;library('simple_html_dom');     $isMarked = false;     if(preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch))     {         $idProduct = $aMatch[1];         $this-&gt;load-&gt;model('catalog\/product');         $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProduct);         $isMarked = $aProduct[\"marked\"];     }           $html = str_get_html($output);     $html-&gt;find('div#tab-data', 0)-&gt;innertext =      '&lt;div class=\"form-group\"&gt;         &lt;label class=\"col-sm-2 control-label\"&gt;\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d&lt;\/label&gt;         &lt;div class=\"col-sm-10\"&gt;             &lt;label class=\"radio-inline\"&gt;                 &lt;input type=\"radio\" name=\"marked\" value=\"1\" '.($isMarked ? 'checked=\"checked\"' : \"\").'&gt;\u0414\u0430             &lt;\/label&gt;             &lt;label class=\"radio-inline\"&gt;                 &lt;input type=\"radio\" name=\"marked\" value=\"0\" '.(!$isMarked ? 'checked=\"checked\"' : \"\").'&gt;\u041d\u0435\u0442             &lt;\/label&gt;         &lt;\/div&gt;     &lt;\/div&gt;' . $html-&gt;find('div#tab-data', 0)-&gt;innertext;     $output = $html-&gt;outertext; }<\/code><\/pre>\n<h4>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/h4>\n<p>\u0414\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043e\u0433\u0434\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c&#187;, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e&nbsp;(\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f)&nbsp;\u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c catalog\/product \u043f\u0440\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u0430&nbsp;(ModelCatalogProduct::editProduct)&nbsp;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u043d\u0430\u0448\u0435 \u043d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f &#171;\u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430&#187;:<\/p>\n<pre><code class=\"php\">public function eventProductEditAfter(&amp;$route, &amp;$args) {   \/\/\u0432 $args[0] \u043b\u0435\u0436\u0438\u0442 id \u0442\u043e\u0432\u0430\u0440\u0430   $sSql = \"UPDATE \" . DB_PREFIX . \"product SET marked = \" . $this-&gt;db-&gt;escape($args[1]['marked']) . \" WHERE product_id = '\" . (int)$args[0] . \"'\";   $this-&gt;db-&gt;query($sSql); }<\/code><\/pre>\n<h4>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f<\/h4>\n<p>\u041f\u0440\u0438 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 marked \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b product \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0448\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 uninstall.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432:<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"product` DROP `marked`\");<\/code><\/pre>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u0434\u043b\u044f ocStore 2.3.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('extension\/event'); $this-&gt;model_extension_event-&gt;deleteEvent('productmarkedfield');<\/code><\/pre>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (ocStore 3.0.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('setting\/event'); $this-&gt;model_setting_event-&gt;deleteEventByCode('productmarkedfield');<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h4>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u0442\u0440\u0443\u0434\u043d\u043e, \u043e\u0434\u043d\u0430\u043a\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043d\u0430\u0434\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430 &#8212;&nbsp;<a href=\"https:\/\/byurrer.ru\/files\/54\/productmarkedfield.ocmod.zip\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>&nbsp;\u043d\u0430 \u0430\u0440\u0445\u0438\u0432 \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<\/p>\n<p>\u0410\u0432\u0442\u043e\u0440: \u0412\u0438\u0442\u0430\u043b\u0438\u0439 \u0411\u0443\u0442\u0443\u0440\u043b\u0438\u043d<\/p>\n<p><a href=\"https:\/\/byurrer.ru\/dopolnitelnoe-pole-v-kartochke-tovara-opencart.html\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/p>\n<\/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\/533608\/\"> https:\/\/habr.com\/ru\/post\/533608\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u0435\u0433\u043e \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u0433\u0430.<\/p>\n<\/blockquote>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f&nbsp;\u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f OpenCart, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e&nbsp;<u>\u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435<\/u>. \u042d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435 \u0441&nbsp;<em>\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c<\/em>&nbsp;&#171;\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u043e\u0432\u0430\u0440 \u0438\u043b\u0438 \u043d\u0435\u0442&#187;. \u0412\u043e\u0442 \u0442\u0430\u043a \u0432 \u0438\u0442\u043e\u0433\u0435:<\/p>\n<figure class=\"full-width\"><figcaption>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 OpenCart<\/figcaption><\/figure>\n<\/p>\n<p>\u041d\u0435\u0434\u043e\u043b\u0433\u043e \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 \u0432\u044b\u044f\u0441\u043d\u0438\u043b, \u0447\u0442\u043e&nbsp;<em>\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438<\/em>&nbsp;OpenCart \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<a href=\"%D0%B2%D0%BE%D1%82\" rel=\"noopener noreferrer nofollow\">&nbsp;<\/a><a href=\"https:\/\/ocmod.net\/modul-dopolnitelnye-polya-v-tovare\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442<\/a>. \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 OpenCart \u0441\u0430\u043c\u043e\u043c\u0443.<\/p>\n<p><strong>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p><u>\u0437\u0430\u044e\u0437\u0430\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044f<\/u>&nbsp;(sku, upc, ean, jan, isbn, mpn)&nbsp;&#8212;&nbsp;<em>\u043f\u043e\u0447\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/em>, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0442\u043e-\u0442\u043e \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u044f\u0442\u043e\u0435 \u043d\u0430\u043c\u0438 \u043f\u043e\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u0432\u043c\u0435\u0448\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u0434 \u0434\u0432\u0438\u0436\u043a\u0430<\/u>&nbsp;&#8212;&nbsp;<em>\u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043c\u0430\u043b\u043e \u043a\u043e\u0434\u0430<\/em>, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e \u0438 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438 \u0441\u0430\u043c\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u044b      \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><u>\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c<\/u>&nbsp;&#8212;&nbsp;<em>\u0434\u043e\u043b\u044c\u0448\u0435, \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430<\/em>, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 OpenCart, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430&nbsp;(<em>\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u0436\u043e\u0440\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439<\/em>).<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c ProductMarkedField. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445&nbsp;\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u043f\u0440\u0438\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430&nbsp;\u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 OpenCart.<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435&nbsp;\u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0444\u043e\u0440\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043f\u0440\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f&nbsp;<u>\u043f\u043e\u043a\u0430\u0437\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u0430<\/u>&nbsp;\u0438&nbsp;<u>\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430<\/u>.<\/p>\n<p><em>\u041f\u0440\u043e \u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f opencart \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437, \u0430 \u043f\u043e\u043a\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0432 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u0435.<\/em><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430&nbsp; <em>admin\/controller\/extension\/module\/productmarkedfield.php<\/em>. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0443\u043b\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 &#171;\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439&#187;&nbsp;(\u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\/\u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c)&nbsp;\u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b&nbsp;<em>admin\/language\/ru-ru\/extension\/module\/productmarkedfield.php<\/em>&nbsp;\u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:<\/p>\n<pre><code class=\"php\">&lt;?php $_['heading_title'] = '\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \"\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430\"';<\/code><\/pre>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f<\/h4>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 install \u043d\u0443\u0436\u043d\u043e&nbsp;\u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443&nbsp;product:&nbsp;<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"oc_product` ADD `marked` TINYINT UNSIGNED NOT NULL DEFAULT '0';\");<\/code><\/pre>\n<p>\u0412 ocStore 2.3.x \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0432 ocStore 3.0.2.0 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 MySQL 8, \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430 date_available:<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"product` CHANGE `date_available` `date_available` DATE NOT NULL;\");<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c&nbsp;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u044b \u043c\u043e\u0433\u043b\u0438&nbsp;<u>\u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u0430<\/u>&nbsp;\u0438&nbsp;<u>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/u>&nbsp;(\u0434\u043b\u044f ocStore 2.3.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('extension\/event');   \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435 \"\u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0442\u043e\u0432\u0430\u0440\u0430\" - \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442) $this-&gt;model_extension_event-&gt;addEvent(   'productmarkedfield', \/\/\u043a\u043e\u0434, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f   'admin\/view\/catalog\/product_form\/after', \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435    'extension\/module\/productmarkedfield\/eventProductFormAfter' \/\/\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a );   \/\/\u0441\u043e\u0431\u044b\u0442\u0438\u0435 \"\u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430\" - \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 $this-&gt;model_extension_event-&gt;addEvent(   'productmarkedfield',    'admin\/model\/catalog\/product\/editProduct\/after',    'extension\/module\/productmarkedfield\/eventProductEditAfter' );<\/code><\/pre>\n<p>\u0414\u043b\u044f ocStore 3.0.x \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('setting\/event');<\/code><\/pre>\n<p>\u0418 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 model_extension_event \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c model_setting_event \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<h3>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430<\/h3>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u043e\u043b\u0435 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0442\u043e\u0432\u0430\u0440\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438&nbsp;<em>admin\/view\/template\/catalog\/product_form.twig<\/em>. \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c 3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"sql\">public function eventProductFormAfter( &amp;$route, &amp;$args, \/\/\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d &amp;$output\/\/html \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b )<\/code><\/pre>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u0440\u0435\u0442\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 &amp;$output, \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f&nbsp;<a href=\"https:\/\/sourceforge.net\/projects\/simplehtmldom\/\" rel=\"noopener noreferrer nofollow\">Simple HTML DOM<\/a>, \u0438&nbsp;<a href=\"https:\/\/simplehtmldom.sourceforge.io\/manual.htm\" rel=\"noopener noreferrer nofollow\">\u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043c\u0430\u043d\u0443\u0430\u043b<\/a>. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u043a\u043b\u0430\u0434\u0451\u043c \u0435\u0433\u043e \u0432 system\/library, \u0430 \u0432 \u043a\u043e\u0434\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c&nbsp;(@ \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438):<\/p>\n<pre><code class=\"php\">@$this-&gt;load-&gt;library('simple_html_dom');<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c id \u0442\u043e\u0432\u0430\u0440\u0430.&nbsp;(\u0418\u0441\u043a\u0430\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043d\u043e id \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432 $args \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b):<\/p>\n<pre><code class=\"php\">preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch); $idProdict = $aMatch[1];<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u0442\u043e\u0432\u0430\u0440 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u0432\u0430\u0440\u0435&nbsp;(\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 product \u0438 product_description):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('catalog\/product'); $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProdict);<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u0432\u0430\u0440\u0430, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430, \u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d id \u0435\u0449\u0435 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"php\">$isMarked = false; if(preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch)) {     $idProduct = $aMatch[1];     $this-&gt;load-&gt;model('catalog\/product');     $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProduct);     $isMarked = $aProduct[\"marked\"]; }<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e isMarked, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e false \u0438 \u0435\u0441\u043b\u0438 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 id \u0442\u043e\u0432\u0430\u0440\u0430, \u0442\u043e\u0433\u0434\u0430 \u0432 isMarked \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0442\u043e\u0432\u0430\u0440\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Simple HTML DOM \u043d\u0430\u0439\u0434\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &#171;\u0414\u0430\u043d\u043d\u044b\u0435&#187; \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0441\u0430\u043c\u043e\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \u043d\u0430\u0448\u0435 \u043f\u043e\u043b\u0435 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e gui \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432&nbsp;<em>admin\/view\/template\/catalog\/product_form.twig<\/em>&nbsp;(\u0432 ocStore 2.3.x tpl \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0442 Twig):<\/p>\n<pre><code class=\"php\">$html = str_get_html($output); $html-&gt;find('div#tab-data', 0)-&gt;innertext =  '&lt;div class=\"form-group\"&gt;     &lt;label class=\"col-sm-2 control-label\"&gt;\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d&lt;\/label&gt;     &lt;div class=\"col-sm-10\"&gt;         &lt;label class=\"radio-inline\"&gt;             &lt;input type=\"radio\" name=\"marked\" value=\"1\" '.($aProduct[\"marked\"] ? 'checked=\"checked\"' : \"\").'&gt;\u0414\u0430         &lt;\/label&gt;         &lt;label class=\"radio-inline\"&gt;             &lt;input type=\"radio\" name=\"marked\" value=\"0\" '.(!$aProduct[\"marked\"] ? 'checked=\"checked\"' : \"\").'&gt;\u041d\u0435\u0442         &lt;\/label&gt;     &lt;\/div&gt; &lt;\/div&gt;' . $html-&gt;find('div#tab-data', 0)-&gt;innertext;<\/code><\/pre>\n<p>\u041a\u043e\u0434 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c:<\/p>\n<pre><code class=\"php\">public function eventProductFormAfter(&amp;$route, &amp;$args, &amp;$output) {     @$this-&gt;load-&gt;library('simple_html_dom');     $isMarked = false;     if(preg_match(\"\/product_id=(\\d+)\/\", $args[\"action\"], $aMatch))     {         $idProduct = $aMatch[1];         $this-&gt;load-&gt;model('catalog\/product');         $aProduct = $this-&gt;model_catalog_product-&gt;getProduct($idProduct);         $isMarked = $aProduct[\"marked\"];     }           $html = str_get_html($output);     $html-&gt;find('div#tab-data', 0)-&gt;innertext =      '&lt;div class=\"form-group\"&gt;         &lt;label class=\"col-sm-2 control-label\"&gt;\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d&lt;\/label&gt;         &lt;div class=\"col-sm-10\"&gt;             &lt;label class=\"radio-inline\"&gt;                 &lt;input type=\"radio\" name=\"marked\" value=\"1\" '.($isMarked ? 'checked=\"checked\"' : \"\").'&gt;\u0414\u0430             &lt;\/label&gt;             &lt;label class=\"radio-inline\"&gt;                 &lt;input type=\"radio\" name=\"marked\" value=\"0\" '.(!$isMarked ? 'checked=\"checked\"' : \"\").'&gt;\u041d\u0435\u0442             &lt;\/label&gt;         &lt;\/div&gt;     &lt;\/div&gt;' . $html-&gt;find('div#tab-data', 0)-&gt;innertext;     $output = $html-&gt;outertext; }<\/code><\/pre>\n<h4>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/h4>\n<p>\u0414\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043e\u0433\u0434\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c&#187;, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e&nbsp;(\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f)&nbsp;\u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c catalog\/product \u043f\u0440\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u0430&nbsp;(ModelCatalogProduct::editProduct)&nbsp;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u043d\u0430\u0448\u0435 \u043d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f &#171;\u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430&#187;:<\/p>\n<pre><code class=\"php\">public function eventProductEditAfter(&amp;$route, &amp;$args) {   \/\/\u0432 $args[0] \u043b\u0435\u0436\u0438\u0442 id \u0442\u043e\u0432\u0430\u0440\u0430   $sSql = \"UPDATE \" . DB_PREFIX . \"product SET marked = \" . $this-&gt;db-&gt;escape($args[1]['marked']) . \" WHERE product_id = '\" . (int)$args[0] . \"'\";   $this-&gt;db-&gt;query($sSql); }<\/code><\/pre>\n<h4>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f<\/h4>\n<p>\u041f\u0440\u0438 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 marked \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b product \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0448\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 uninstall.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432:<\/p>\n<pre><code class=\"php\">$this-&gt;db-&gt;query(\"ALTER TABLE `\".DB_PREFIX.\"product` DROP `marked`\");<\/code><\/pre>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u0434\u043b\u044f ocStore 2.3.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('extension\/event'); $this-&gt;model_extension_event-&gt;deleteEvent('productmarkedfield');<\/code><\/pre>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (ocStore 3.0.x):<\/p>\n<pre><code class=\"php\">$this-&gt;load-&gt;model('setting\/event'); $this-&gt;model_setting_event-&gt;deleteEventByCode('productmarkedfield');<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h4>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u0442\u0440\u0443\u0434\u043d\u043e, \u043e\u0434\u043d\u0430\u043a\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u043d\u0430\u0434\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430 &#8212;&nbsp;<a href=\"https:\/\/byurrer.ru\/files\/54\/productmarkedfield.ocmod.zip\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>&nbsp;\u043d\u0430 \u0430\u0440\u0445\u0438\u0432 \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<\/p>\n<p>\u0410\u0432\u0442\u043e\u0440: \u0412\u0438\u0442\u0430\u043b\u0438\u0439 \u0411\u0443\u0442\u0443\u0440\u043b\u0438\u043d<\/p>\n<p><a href=\"https:\/\/byurrer.ru\/dopolnitelnoe-pole-v-kartochke-tovara-opencart.html\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/p>\n<\/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\/533608\/\"> https:\/\/habr.com\/ru\/post\/533608\/<\/a><br \/><\/br><\/br><\/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-315038","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315038","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=315038"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315038\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}