{"id":2393,"date":"2024-05-27T09:03:44","date_gmt":"2024-05-27T09:03:44","guid":{"rendered":"https:\/\/www.rcvtechnologies.com\/blog\/?p=2393"},"modified":"2024-11-13T12:38:35","modified_gmt":"2024-11-13T12:38:35","slug":"opencart-4-extension-module-development-guide-for-beginners","status":"publish","type":"post","link":"https:\/\/www.rcvtechnologies.com\/blog\/opencart-4-extension-module-development-guide-for-beginners\/","title":{"rendered":"Opencart 4 Extension Module Development Guide For Beginners!"},"content":{"rendered":"<h2 class=\"blog-itmind-inner-head\"><b>Opencart Version 4<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Opencart is a free open-source e-commerce platform enabling users to create online stores and sell products. <\/span><span style=\"font-weight: 400;\">There are many features in Opencart, with more than 14,000 add-on extensions you can integrate into your site. It supports multi-store development, so you can easily develop and manage different stores with a single interface.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Opencart is based on PHP and follows the MVCL(Model, View, Controller, Language) architecture and uses Mysqli or <\/span><span style=\"font-weight: 400;\">PostgreSQL database and HTML components (in version 4 <\/span><b>\u201c<\/b><span style=\"font-weight: 400;\">Twig<\/span><b>\u201d<\/b><span style=\"font-weight: 400;\">).<\/span><\/p>\n<h2 class=\"blog-itmind-inner-head\"><b>Opencart Directory Structure<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">In version 4, opencart extensions are found in the \u201cextension\u201d directory within the Opencart root directory.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Admin<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Controller<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Language<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">View<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Catalog<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Controller<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Language<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">View<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Extension<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Create_module_folder<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"3\"><span style=\"font-weight: 400;\">Admin<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Controller<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Language<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">View<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"3\"><span style=\"font-weight: 400;\">Catalog<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Controller<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Language<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">Model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"4\"><span style=\"font-weight: 400;\">View<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"3\"><span style=\"font-weight: 400;\">Install.json<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Image<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">System<\/span><\/li>\n<\/ul>\n<p><b>NOTE:-\u00a0 The admin folder stores back end code and also for configuration. And Catalog folder is for front end code.<\/b><\/p>\n<p>Stay tuned for further<strong> <a href=\"https:\/\/www.rcvtechnologies.com\/blog\/how-to-create-a-module-in-opencart-4\/\">coding part<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Opencart Version 4 Opencart is a free open-source e-commerce platform enabling users to create online stores and sell products. There are many features in Opencart, with more than 14,000 add-on extensions you can integrate into your site. It supports multi-store development, so you can easily develop and manage different stores with a single interface. Opencart [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":3491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[136],"tags":[138,140,139],"class_list":["post-2393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","tag-opencart-4","tag-php","tag-software-development"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=2393"}],"version-history":[{"count":12,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2393\/revisions"}],"predecessor-version":[{"id":3855,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2393\/revisions\/3855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/media\/3491"}],"wp:attachment":[{"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=2393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=2393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rcvtechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=2393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}