{"id":1618,"date":"2020-10-10T14:24:09","date_gmt":"2020-10-10T08:54:09","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/?p=1618"},"modified":"2020-12-14T12:32:01","modified_gmt":"2020-12-14T07:02:01","slug":"ocmod-modification-is-not-working-in-opencart-3-0-3-6","status":"publish","type":"post","link":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/","title":{"rendered":"OCMOD modification is not working in OpenCart 3.0.3.6"},"content":{"rendered":"\n<p>There is a bug in OpenCart 3.0.3.6 where the OCMOD modification is partially working or not working at all. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>To fix this issue, you need to access the file system\/modification.xml<\/li><li>Edit the file and copy-paste code as mentioned below or you can get the code from <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/opencart\/opencart\/blob\/3.0.x.x_Maintenance\/upload\/system\/modification.xml\" target=\"_blank\">https:\/\/github.com\/opencart\/opencart\/blob\/3.0.x.x_Maintenance\/upload\/system\/modification.xml<\/a><\/li><li>After editing and saving the updated changes, click on Refresh Modification button on Admin: Extension &gt; Modifications<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n\n&lt;modification&gt;\n\n&lt;name&gt;Modification Default&lt;\/name&gt;\n\n&lt;code&gt;default&lt;\/code&gt;\n\n&lt;version&gt;1.1&lt;\/version&gt;\n\n&lt;author&gt;OpenCart Ltd&lt;\/author&gt;\n\n&lt;link&gt;http:\/\/www.opencart.com&lt;\/link&gt;\n\n&lt;file path=\"system\/{engine,library}\/{action,loader,config,language}*.php|system\/library\/template\/template.php\"&gt;\n\n&lt;operation&gt;\n\n&lt;search regex=\"true\"&gt;\n\n&lt;![CDATA[~(require|include)(_once)?\\(([^)]+)~]]&gt;\n\n&lt;\/search&gt;\n\n&lt;add position=\"replace\"&gt;\n\n&lt;![CDATA[$1$2(modification($3)]]&gt;\n\n&lt;\/add&gt;\n\n&lt;\/operation&gt;\n\n&lt;\/file&gt;\n\n&lt;file path=\"system\/library\/template\/twig.php\"&gt;\n\n&lt;operation&gt;\n\n&lt;search&gt;\n\n&lt;![CDATA[if (is_file($file)) {]]&gt;\n\n&lt;\/search&gt;\n\n&lt;add position=\"replace\"&gt;\n\n&lt;![CDATA[if (defined('DIR_CATALOG') &amp;&amp; is_file(DIR_MODIFICATION . 'admin\/view\/template\/' . $filename . '.twig')) {\n\n$code = file_get_contents(DIR_MODIFICATION . 'admin\/view\/template\/' . $filename . '.twig');\n\n} elseif (is_file(DIR_MODIFICATION . 'catalog\/view\/theme\/' . $filename . '.twig')) {\n\n$code = file_get_contents(DIR_MODIFICATION . 'catalog\/view\/theme\/' . $filename . '.twig');\n\n} elseif (is_file($file)) {]]&gt;\n\n&lt;\/add&gt;\n\n&lt;\/operation&gt;\n\n&lt;\/file&gt;\n\n&lt;\/modification&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There is a bug in OpenCart 3.0.3.6 where the OCMOD modification is partially working or not working at all. To fix this issue, you need to access the file system\/modification.xml Edit the file and copy-paste code as mentioned below or you can get the code from https:\/\/github.com\/opencart\/opencart\/blob\/3.0.x.x_Maintenance\/upload\/system\/modification.xml After editing and saving the updated changes, click [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,22],"tags":[12,82],"class_list":["post-1618","post","type-post","status-publish","format-standard","hentry","category-blogs","category-technical-guide","tag-opencart","tag-opencart3036"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"There is a bug in OpenCart 3.0.3.6 where the OCMOD modification is partially working or not working at all. To fix this issue, you need to access the file system\/modification.xml Edit the file and copy-paste code as mentioned below or you can get the code from https:\/\/github.com\/opencart\/opencart\/blob\/3.0.x.x_Maintenance\/upload\/system\/modification.xml After editing and saving the updated changes, click [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-10T08:54:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-14T07:02:01+00:00\" \/>\n<meta name=\"author\" content=\"huntbee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"huntbee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/\"},\"author\":{\"name\":\"huntbee\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/person\\\/68d577bfe48ea287ea3f348a0524e09b\"},\"headline\":\"OCMOD modification is not working in OpenCart 3.0.3.6\",\"datePublished\":\"2020-10-10T08:54:09+00:00\",\"dateModified\":\"2020-12-14T07:02:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/\"},\"wordCount\":84,\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"keywords\":[\"opencart\",\"opencart3036\"],\"articleSection\":[\"Blogs\",\"Technical Guide\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/\",\"name\":\"OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"datePublished\":\"2020-10-10T08:54:09+00:00\",\"dateModified\":\"2020-12-14T07:02:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCMOD modification is not working in OpenCart 3.0.3.6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/person\\\/68d577bfe48ea287ea3f348a0524e09b\",\"name\":\"huntbee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/litespeed\\\/avatar\\\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/litespeed\\\/avatar\\\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/litespeed\\\/avatar\\\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637\",\"caption\":\"huntbee\"},\"sameAs\":[\"https:\\\/\\\/www.huntbee.com\\\/\"],\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/","og_locale":"en_US","og_type":"article","og_title":"OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources","og_description":"There is a bug in OpenCart 3.0.3.6 where the OCMOD modification is partially working or not working at all. To fix this issue, you need to access the file system\/modification.xml Edit the file and copy-paste code as mentioned below or you can get the code from https:\/\/github.com\/opencart\/opencart\/blob\/3.0.x.x_Maintenance\/upload\/system\/modification.xml After editing and saving the updated changes, click [&hellip;]","og_url":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_published_time":"2020-10-10T08:54:09+00:00","article_modified_time":"2020-12-14T07:02:01+00:00","author":"huntbee","twitter_card":"summary_large_image","twitter_misc":{"Written by":"huntbee","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/#article","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/"},"author":{"name":"huntbee","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/person\/68d577bfe48ea287ea3f348a0524e09b"},"headline":"OCMOD modification is not working in OpenCart 3.0.3.6","datePublished":"2020-10-10T08:54:09+00:00","dateModified":"2020-12-14T07:02:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/"},"wordCount":84,"publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"keywords":["opencart","opencart3036"],"articleSection":["Blogs","Technical Guide"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/","url":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/","name":"OCMOD modification is not working in OpenCart 3.0.3.6 - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"datePublished":"2020-10-10T08:54:09+00:00","dateModified":"2020-12-14T07:02:01+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/ocmod-modification-is-not-working-in-opencart-3-0-3-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"OCMOD modification is not working in OpenCart 3.0.3.6"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]},{"@type":"Person","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/person\/68d577bfe48ea287ea3f348a0524e09b","name":"huntbee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/wp-content\/litespeed\/avatar\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/litespeed\/avatar\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/litespeed\/avatar\/7711938111021bdf63fffaf7394ff3b9.jpg?ver=1777651637","caption":"huntbee"},"sameAs":["https:\/\/www.huntbee.com\/"],"url":"https:\/\/www.huntbee.com\/resources\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/posts\/1618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=1618"}],"version-history":[{"count":4,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/posts\/1618\/revisions"}],"predecessor-version":[{"id":1647,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/posts\/1618\/revisions\/1647"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=1618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/categories?post=1618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/tags?post=1618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}