{"id":8504,"date":"2024-06-03T12:54:42","date_gmt":"2024-06-03T12:54:42","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8504"},"modified":"2024-06-03T12:54:44","modified_gmt":"2024-06-03T12:54:44","slug":"understanding-cs-cart-file-paths-a-comprehensive-guide","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/understanding-cs-cart-file-paths-a-comprehensive-guide\/","title":{"rendered":"Understanding CS-Cart File Paths: A Comprehensive Guide"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 2,567<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Understanding the file paths in a CS-Cart installation is essential for customization, debugging, and development. Here\u2019s an overview of the key directories and their purposes in CS-Cart:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key Directories and File Paths in CS-Cart<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Root Directory<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The root directory contains the core files and directories of the CS-Cart installation. Important files here include <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">config.local.php<\/mark><\/code>, <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">index.php<\/mark><\/code>, and <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">init.php<\/mark><\/code>.<\/li>\n<\/ul>\n\n\n\n<p>    2. <strong>app\/<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>app\/addons\/<\/strong>: Contains the core add-ons provided by CS-Cart.<\/li>\n\n\n\n<li><strong>app\/controllers\/<\/strong>: Contains the main controllers for both the frontend (<code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">frontend<\/mark><\/code>) and backend (<code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">backend<\/mark><\/code>) of the store.<\/li>\n\n\n\n<li><strong>app\/functions\/<\/strong>: Contains various function files used across the CS-Cart system.<\/li>\n\n\n\n<li><strong>app\/lib\/<\/strong>: Contains third-party libraries used by CS-Cart.<\/li>\n\n\n\n<li><strong>app\/schemas\/<\/strong>: Contains schema files that define how different components of CS-Cart interact and are configured.<\/li>\n\n\n\n<li><strong>app\/Tygh\/<\/strong>: Contains the core classes and the main framework of CS-Cart.<\/li>\n<\/ul>\n\n\n\n<p>   3. <strong>design\/<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>design\/backend\/<\/strong>: Contains the templates, styles, and JavaScript files for the admin panel.<\/li>\n\n\n\n<li><strong>design\/themes\/<\/strong>: Contains the themes for the storefront, including templates, styles, and JavaScript files.<\/li>\n\n\n\n<li><strong>design\/themes\/basic\/<\/strong>: This is an example of a specific theme directory. Each theme will have its own directory here.<\/li>\n<\/ul>\n\n\n\n<p>    4. <strong>js\/<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Contains JavaScript files and libraries used across the CS-Cart frontend and backend.<\/li>\n<\/ul>\n\n\n\n<p>    5. <strong>images\/<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stores all image files for the store, including product images, category images, and other miscellaneous images used by the site.<\/li>\n<\/ul>\n\n\n\n<p>    6. <strong>var\/<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>var\/cache\/<\/strong>: Stores cache files generated by CS-Cart. Clearing this directory can help resolve caching issues.<\/li>\n\n\n\n<li><strong>var\/files\/<\/strong>: Contains various files uploaded through the admin panel.<\/li>\n\n\n\n<li><strong>var\/langs\/<\/strong>: Contains language files for different languages supported by the store.<\/li>\n\n\n\n<li><strong>var\/logs\/<\/strong>: Stores log files for debugging and tracking system errors.<\/li>\n\n\n\n<li><strong>var\/themes_repository\/<\/strong>: Stores default theme files that can be used as a backup or reference.<\/li>\n<\/ul>\n\n\n\n<p>    7. <strong>config.local.php<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This file contains local configuration settings for the CS-Cart installation, including database credentials, cache settings, and other environment-specific configurations.<\/li>\n<\/ul>\n\n\n\n<p>    8. <strong>index.php<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The main entry point for the CS-Cart application. All requests are routed through this file.<\/li>\n<\/ul>\n\n\n\n<p>    9. <strong>init.php<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Initializes the CS-Cart application by loading essential configurations and libraries.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Customizing and Extending CS-Cart<\/h3>\n\n\n\n<p>When customizing or extending CS-Cart, you\u2019ll primarily interact with the following directories:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>design\/themes\/your_theme\/<\/strong>: For theme-related customizations such as templates, styles, and JavaScript.<\/li>\n\n\n\n<li><strong>app\/addons\/<\/strong>: For creating or modifying add-ons.<\/li>\n\n\n\n<li><strong>var\/langs\/<\/strong>: For adding or modifying language translations.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>Understanding the file structure of CS-Cart is crucial for effective customization and management. The key directories such as <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">app\/<\/mark><\/code>, <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">design\/<\/mark><\/code>, <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">js\/<\/mark><\/code>, <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">images\/<\/mark><\/code>, and <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">var\/<\/mark><\/code> serve distinct purposes, ranging from core functionalities to theme files and caches. When making customizations, focus on the <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">design\/themes\/<\/mark><\/code> for themes and <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">app\/addons\/<\/mark><\/code> for add-ons.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2,567 Views Understanding the file paths in a CS-Cart installation is essential for customization, debugging, and development. Here\u2019s an overview of the key directories and their purposes in CS-Cart: Key Directories and File Paths in CS-Cart 2. app\/ 3. design\/ 4. js\/ 5. images\/ 6. var\/ 7. config.local.php 8. index.php 9. init.php Customizing and Extending [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[82],"tags":[],"class_list":["post-8504","post","type-post","status-publish","format-standard","hentry","category-cs-cart"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8504"}],"version-history":[{"count":1,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8504\/revisions"}],"predecessor-version":[{"id":8505,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8504\/revisions\/8505"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}