{"id":22402769,"url":"https://github.com/zen4all-nl/multisite-module-for-zen-cart","last_synced_at":"2026-03-10T10:06:40.754Z","repository":{"id":5586184,"uuid":"6792400","full_name":"Zen4All-nl/Multisite-Module-for-Zen-Cart","owner":"Zen4All-nl","description":"This is the Multi Site module for Zen Cart","archived":false,"fork":false,"pushed_at":"2021-04-29T08:35:37.000Z","size":793,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-31T18:38:01.466Z","etag":null,"topics":["multisite","php","zen-cart","zencart"],"latest_commit_sha":null,"homepage":"http://www.zen-cart.com/downloads.php?do=file\u0026id=378","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zen4All-nl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-21T08:32:25.000Z","updated_at":"2024-08-14T13:17:40.000Z","dependencies_parsed_at":"2022-09-22T03:00:55.104Z","dependency_job_id":null,"html_url":"https://github.com/Zen4All-nl/Multisite-Module-for-Zen-Cart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Zen4All-nl/Multisite-Module-for-Zen-Cart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zen4All-nl%2FMultisite-Module-for-Zen-Cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zen4All-nl%2FMultisite-Module-for-Zen-Cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zen4All-nl%2FMultisite-Module-for-Zen-Cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zen4All-nl%2FMultisite-Module-for-Zen-Cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zen4All-nl","download_url":"https://codeload.github.com/Zen4All-nl/Multisite-Module-for-Zen-Cart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zen4All-nl%2FMultisite-Module-for-Zen-Cart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30329698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multisite","php","zen-cart","zencart"],"created_at":"2024-12-05T09:14:17.439Z","updated_at":"2026-03-10T10:06:40.693Z","avatar_url":"https://github.com/Zen4All-nl.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr"],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"contentWrapper\"\u003e\n  \u003ch1\u003eMulti Site Module v1.0.1 Beta for ZC 1.5.1 Documentation\u003c/h1\u003e\n  \u003cdiv id=\"contentMenu\"\u003e\n    \u003cul\u003e\n      \u003cli\u003e\u003ca href=\"#introduction\"\u003eIntroduction\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#whats_new\"\u003eWhat's New\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#upgrade\"\u003eUpgrade\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#configuration\"\u003eConfiguration\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#version_history\"\u003eVersion History\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#faqs\"\u003eFAQs\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#support\"\u003eSupport\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"#donations\"\u003eDonations\u003c/a\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"introduction\" id=\"introduction\"\u003e\u003c/a\u003eIntroduction\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cp\u003eThis contribution Multi Site support to Zen Cart.\u003c/p\u003e\n    \u003cp\u003eCredit is due to \u003ca href=\"http://www.medea.co.uk/\" target=\"_blank\"\u003eGerome Romey\u003c/a\u003e for creating Multi Site 0.4 and the \u003ca href=\"http://www.zen-cart.com/index.php\" target=\"_blank\"\u003eZen Cart Team\u003c/a\u003e for creating the best open source ecommerce package available!\u003c/p\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"whats_new\" id=\"whats_new\"\u003e\u003c/a\u003eWhat's New\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cp\u003eVersion 1.0.1 - Release Date: 2013-02-09\u003c/p\u003e\n    \u003cul\u003e\n    \u003cli\u003eUpdated site links sodebox to use the on/off switch properly\u003c/li\u003e\n    \u003cli\u003eAdded a header site link side box. This box can be placed any where you like and displays a horizontal bar with the site links.\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"installation\" id=\"installation\"\u003e\u003c/a\u003eInstallation\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cp\u003eThis version of Multi Site has been updated and tested for use with Zen Cart 1.5.1\u003c/p\u003e\n\u003cp\u003ePlease remember to \u003cstrong\u003ebackup your website files and database\u003c/strong\u003e before you continue.\u003c/p\u003e\n    \u003cp\u003eTo install Multi Site follow the steps below.\u003c/p\u003e\n    \u003col\u003e\n      \u003cli\u003eDownload the latest version of Multi Site from:\u003cbr /\u003e\n        \u003ca href=\"http://www.zen-cart.com/downloads.php?do=file\u0026id=378\" target=\"_blank\"\u003ehttp://www.zen-cart.com/downloads.php?do=file\u0026id=378\u003cbr /\u003e\n        \u003cbr /\u003e\n        \u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003eExtract the contents  (of master.zip) to a temporary location, keeping the file structure intact. (Note: If you can't open this file try using \u003ca href=\"http://www.7-zip.org/\" target=\"_blank\"\u003e7-Zip\u003c/a\u003e, it's free!)\u003cbr /\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eOpen the \u003cstrong\u003e4_SQL_Files\u003c/strong\u003e folder and then open the install.sql file in a text editor (not Microsoft word) and copy all of the text to the clipboard. Next go to (Admin \u0026gt; Tools \u0026gt; Install SQL Patches) in your Zen Cart admin and paste the contents of install.sql into the text area and then press the send button. Or copy the code from below\u003cbr /\u003e\n      \u003cpre name=\"code\" class=\"sql:nogutter\"\u003eALTER TABLE orders ADD order_site varchar(30) NOT NULL DEFAULT 'no';\u003c/pre\u003e\n        This adds the column 'order_site' to the 'Orders' Table to know which site orders originate from.\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\u003cspan style=\"color:#900\"\u003e\u003cb\u003eAlternative to step 3.\u003c/b\u003e\u003c/span\u003e Open phpMyAdmin for your site and navigate to your database. Choose 'Import' and then 'choose file' and navigate to and select install.sql then choose 'Go'.\u003cbr /\u003e\u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eOpen the \u003cstrong\u003e1_New_Files\u003c/strong\u003e folder\u003cbr /\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eRename the following folders to match your admin folder name.\n        \u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003cstrong\u003eYOUR_ADMIN\u003c/strong\u003e\u003c/li\u003e\n        \u003c/ul\u003e\u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eUpload the entire contents of the \u003cstrong\u003e1_New_Files\u003c/strong\u003e folder, includes folder and the admin folder to your server, again keeping the file structure intact.\n        \u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003eYOUR_ADMIN/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/autoloaders/config.multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/extra_datafiles/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/init_includes/init_multisite_config.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/dutch/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/dutch/extra_definitions/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/dutch/extra_definitions/order_site.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/english/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/english/extra_definitions/multisite.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/languages/english/extra_definitions/order_site.php\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/clipboard.swf\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/shBrushPhp.js\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/shBrushXml.js\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/shCore.js\u003c/li\u003e\n          \u003cli\u003eYOUR_ADMIN/includes/SyntaxHighlighter.css\u003c/li\u003e\n          \u003cli\u003eincludes/config_sites/2fastshoes.com_config.php \u003cspan style=\"color:red;font-size:smaller;\"\u003e(This is only an example config file)\u003c/span\u003e\u003c/li\u003e\n          \u003cli\u003eincludes/config_sites/help.txt \u003cspan style=\"color:red;font-size:smaller;\"\u003e(It is not required to copy this file)\u003c/span\u003e\u003c/li\u003e\n          \u003cli\u003eincludes/config_sites/sites_switch.php\u003c/li\u003e\n          \u003cli\u003eincludes/config_sites/www.example.com_config.php \u003cspan style=\"color:red;font-size:smaller;\"\u003e(This is only an example config file)\u003c/span\u003e\u003c/li\u003e\n          \u003cli\u003eincludes/functions/extra_functions/cat_filter.php\u003c/li\u003e\n          \u003cli\u003eincludes/languages/dutch/extra_definitions/site_links.php\u003c/li\u003e\n          \u003cli\u003eincludes/languages/english/extra_definitions/site_links.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/site_links.php\u003c/li\u003e\n          \u003cli\u003eincludes/templates/template_default/sideboxes/tpl_site_links.php\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eOpen the\u003cstrong\u003e 2_Required_Core_Edits\u003c/strong\u003e folder.\u003cbr /\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n\u003cli\u003eRename the following folder to match your admin folder name.\n        \u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003cstrong\u003eYOUR_ADMIN\u003c/strong\u003e\u003c/li\u003e\n        \u003c/ul\u003e\u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eBefore we proceed there are a couple of things to note. The files in the '2_Required_Core_Edits' folder are of two types. The first type of file CANNOT be over-ridden by the use of templates, the second type is of course the opposite and CAN be overridden by the use of Zen-Cart templates. You can read more about Zen-Cart templates on the Zen-Cart website. The files in the folders listed in the next step are the files which CAN be overridden by the use of templates. In the previous version it was advised to just override the default template files, but I advise against it. It may mean less work now, but in a future upgrade of your Zen Cart it complicates updates.\u003cbr\u003e\n        It is also possible your custom template already contains files in the mentioned folders, which would mean the old method is useless.\n        \u003cbr /\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eThe next folders contain files that have to replace the existing Zen Cart files by the use of the templates. Rename the following folders to match your template folder name.\u003cstrong\u003e You need to do this for every template installed !!\u003c/strong\u003e The files in these folders \u003cstrong\u003emay\u003c/strong\u003e need merging with existing files in your template.\u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003cstrong\u003eincludes/modules/YOUR_TEMPLATE\u003c/strong\u003e\u003c/li\u003e\n          \u003cli\u003e\u003cstrong\u003eincludes/modules/sideboxes/YOUR_TEMPLATE\u003c/strong\u003e\u003c/li\u003e\n          \u003cli\u003e\u003cstrong\u003eincludes/templates/YOUR_TEMPLATE\u003c/strong\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      In the next folder there also already may be files present\u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003cstrong\u003eincludes/init_includes/overrides\u003c/strong\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003c/strong\u003e\u003cbr /\u003e\n\u003c/li\u003e\n      \u003cli\u003eUpload and MERGE where needed the entire contents of the \u003cstrong\u003e2_Required_Core_Edits\u003c/strong\u003e folder, includes folder and the admin folder to your server, again keeping the file structure intact.\n        \u003cbr /\u003e\n        \u003cul\u003e\n          \u003cli\u003eYOUR_ADMIN/orders.php\u003c/li\u003e\n          \u003cli\u003eincludes/classes/category_tree.php\u003c/li\u003e\n          \u003cli\u003eincludes/classes/order.php\u003c/li\u003e\n          \u003cli\u003eincludes/classes/site_map.php\u003c/li\u003e\n          \u003cli\u003eincludes/functions/functions_categories.php\u003c/li\u003e\n          \u003cli\u003eincludes/functions/functions_lookups.php\u003c/li\u003e\n          \u003cli\u003eincludes/init_includes/overrides/init_add_crumbs.php\u003c/li\u003e\n          \u003cli\u003eincludes/init_includes/overrides/init_category_path.php\u003c/li\u003e\n          \u003cli\u003eincludes/init_includes/overrides/init_sessions.php\u003c/li\u003e\n          \u003cli\u003eincludes/init_includes/overrides/init_templates.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/advanced_search_result/header_php.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/featured_products/header_php.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/index/main_template_vars.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/products_all/header_php.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/products_new/header_php.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/reviews/header_php.php\u003c/li\u003e\n          \u003cli\u003eincludes/pages/specials/main_template_vars.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/best_sellers.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/categories.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/document_categories.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/featured.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/manufacturers.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/reviews.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/specials.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/sideboxes/YOUR_TEMPLATE/whats_new.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/categories_tabs.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/category_row.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/featured_products.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/meta_tags.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/new_products.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/product_listing.php\u003c/li\u003e\n          \u003cli\u003eincludes/modules/YOUR_TEMPLATE/specials_index.php\u003c/li\u003e\n          \u003cli\u003eincludes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php\u003c/li\u003e\n          \u003cli\u003eincludes/templates/YOUR_TEMPLATE/templates/tpl_advanced_search_default.php\u003c/li\u003e\n          \u003cli\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003cbr /\u003e\n      \u003c/li\u003e\n      \u003cli\u003eMake a Template for each site\n        \u003cul\u003e\n          \u003cli\u003eWe assume that you already have a Zen-cart shop installed with some categories and products. You need to have a 2nd template that will be use for your 2nd shop. You can simply copy and past the one from your folder \"includes/template/[YOUR_TEMPLATE]\" Or you can download some from www.zen-cart.com.\u003cbr /\u003e\n          \u003cbr /\u003e\n          \u003c/li\u003e\n          \u003cli\u003eTIP: In order to make the things easy, I highly advice you to rename the template to the name of\neach of your site. In this way, you will find easily the folder of the shop you want to modify...\nWhen you rename your template's name, think of renaming every overriding folder too !\nThese folders should be:\n            \u003cul\u003e\n              \u003cli\u003eincludes/templates/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/extra_definitions/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/html_includes/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/modules/order_total/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/modules/payment[YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/modules/shipping/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/modules/YOUR_TEMPLATE\u003c/li\u003e\n              \u003cli\u003eincludes/languages/YOUR_LANGUAGE/modules/sideboxes/YOUR_TEMPLATE\u003c/li\u003e\n            \u003c/ul\u003e\u003cbr /\u003e\n          \u003c/li\u003e\n          \u003cli\u003eDo not use a template for two sites, otherwise, you will be obliged to have the same language files too (same shops' name and same sideboxes position)\u003cbr /\u003e\n          \u003cbr /\u003e\u003c/li\u003e\n          \u003cli\u003eIn the includes/templates/[YOUR_TEMPLATE]/template_info.php, change the template_name to the name of your site that uses the template:\n              \u003cpre name=\"code\" class=\"php:nogutter\"\u003e$template_name = 'mysite';\u003c/pre\u003e\n          \u003c/li\u003e\n          \u003cli\u003eSo, if your sites are called www.site1.com and www.site2.net Then your should rename your template to site1 and site2.\u003cbr /\u003eThe file includes/templates/site1/template_info.php should have the line:\n            \u003cpre name=\"code\" class=\"php:nogutter\"\u003e$template_name = 'site1';\u003c/pre\u003e\n          \u003cbr /\u003eThe file includes/templates/site2/template_info.php should have the line:\n            \u003cpre name=\"code\" class=\"php:nogutter\"\u003e$template_name = 'site1';\u003c/pre\u003e\n          \u003cbr /\u003eThis will help you later in the admin section; the template selector is now only use for choose the site for which you want to change the sidebox setting.\u003cbr /\u003e\u003cbr /\u003e\n          \u003c/li\u003e\n        \u003c/ul\u003e\n      \u003cli\u003eCreate the configuration files of your sites\n        \u003cp\u003eAdd this line at the beginning of your \"includes/configure.php\":\n        \u003cpre name=\"code\" class=\"php:nogutter\"\u003einclude_once('includes/config_sites/sites_switch.php');\u003c/pre\u003e\u003c/p\u003e\n      \u003c/li\u003e\n    \u003c/ol\u003e\n    \u003cp\u003eMulti Site is now installed and ready to use!\u003c/p\u003e\n    \u003cp\u003eGo to the configuration chapter to read more on how to configure your sites.\u003c/p\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"upgrade\" id=\"upgrade\"\u003e\u003c/a\u003eUpgrade \u003cspan style=\"color: #F00;\"\u003e( Do a fresh installation)\u003c/span\u003e\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\" \u003e\n  \u003cp\u003e\u003cstrong\u003eUpgrading from previous versions is not supported\u003c/strong\u003e Please do a fresh installation\u003c/p\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"configuration\" id=\"configuration\"\u003e\u003c/a\u003eConfiguration\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n  \u003col\u003e\n    \u003cli\u003eHow to change the configuration for a specific shop?\n      \u003cp\u003eThe Zen-cart configuration is contained in the database and declared in constants at runtime. The configuration in the admin section stands for the \"default configuration\". You can override this configuration by defining the constants of the setting that you want to change directly in the config file related to one of your site (folder \"includes/config_sites\")\u003c/p\u003e\n      \u003cp\u003eYou now have to create a config file for each one of your sites! The name of the file has to be: \"www.site1.com_config.php\" (for the site targeted by the domain name www.site1.com). This file \"www.site1.com_config.php\" has to contain:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003e\u0026lt;?php\n$template_dir = \"site1\";\ndefine('SITE_NAME','site1');\n?\u0026gt;\u003c/pre\u003e\n      \u003cp\u003e$template_dir is the template that you want to use for this site SITE_NAME is the name of your site (use for the category filter and for the order page in admin; column site).\u003c/p\u003e\n      \u003cp\u003eYou can add constants for overriding of the default configuration from the database or from the configure.php, the following lines are only examples:\u003c/p\u003e\n      \u003cp\u003e//Do not display the categories at the main page for this site:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003edefine('SHOW_CATEGORIES_ALWAYS','0');\u003c/pre\u003e\n      \u003cp\u003e//Display the categories of ID 5 as the main category of the website:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003edefine('CATEGORIES_START_MAIN','5');\u003c/pre\u003e\n      \u003cp\u003e//Change the Contact us email address:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003edefine('STORE_OWNER_EMAIL_ADDRESS','an_email@address.com')\u003c/pre\u003e\n      \u003cp\u003e//Enable the SSL only for this site:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003edefine('ENABLE_SSL', 'true'); //assuming as 'false' in configure.php\u003c/pre\u003e\n      \u003cp\u003eRemember that the code above is only here as example and do not always need to be use.\u003c/p\u003e\n      \u003cp\u003eIf you don't know what is the name of the constants of a configuration setting, you can find it by clicking in your admin on Tools =\u003e Multisite Tools. This brings up the Multisite page. Here you click on the link \"Display Configuration for a new site\". Now all you constants are shown. You can select and copy them to the new config file \u003c/p\u003e\n    \u003c/li\u003e\n    \u003cli\u003eCategory Filter\n      \u003cp\u003eThe MultiSite module works by filtering the categories with the function cat_filter. It only displays the categories that have the name of the site (constant SITE_NAME) in HTML comment in the categories descriptions. Therefore, you need to add this description to EVERY categories description that have to be display in a shop. Sub categories Included!\u003c/p\u003e\n      \u003cp\u003eExample of HTML comment:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"html:nogutter\"\u003e\u003c!--site1-site2-site3--\u003e Description of a category that will be displayed in site1, site2 and site3.\u003c/pre\u003e\n      \u003cp\u003eThis comment will allow this category for the shops site1 site2 and site3. the site names HAVE to be separated by \"-\".\u003cbr /\u003e\nIf you have Lots of categories, it may be quicker to add the categories trough the Multisite tool. Go to Tools =\u0026gt; Multisite Tools, and click \u0026quot;Display the relations Categories/Sites\u0026quot;\u003c/p\u003e\u003ca href=\"Multisite_Category_Configuration_ScreenShot_01.jpg\" target=\"new\" style=\"text-align:center\"\u003e\u003cimg src=\"Multisite_Category_Configuration_ScreenShot_01.jpg\" width=\"300\" height=\"230\" /\u003e\u003cbr /\u003eClick to enlarge\u003c/a\u003e\n      \u003cp\u003eonce you have put your HTML comments in your categories, they should appear on the front end of your shop. If a category has no HTML comment, it won't be displayed in any sites.\u003c/p\u003e\n    \u003c/li\u003e\n    \u003cli\u003eSite Links\n      \u003cp\u003eIf you want to allow the shoppers to have a cross-sites cart (orders products from different websites in the same cart), You have to display the side-box called \"site_links.php\" and you have to add the sites that you want to be link by editing the file \"includes\\modules\\sideboxes\\site_links.php\".\u003c/p\u003e\n      \u003cp\u003eIn this file, you have to add as many add_site_link(...); as you want of site links.\u003c/p\u003e\n      \u003cp\u003eExample:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003eadd_site_link('Shop Site1','http://www.site1.com');\nadd_site_link('Shop Site2','http://www.site2.com');\u003c/pre\u003e\n      \u003cp\u003eThis works too:\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003eadd_site_link('www.site1.com');\nadd_site_link('www.site2.com');\u003c/pre\u003e\n      \u003cp\u003ePS: these shops Should be Your multi-sites. You can also add some other sites there but the cross-site cart won't work (and so might confused the shoppers ...)\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003eadd_site_link('Zen Cart','http://www.zen-cart.com',false);\u003c/pre\u003e\n      \u003cp\u003eBy adding false as third parameter (false), it won't add the zenid to the link. It can be use either for a shop in the same domain (cookie will work for it) or an external link (cross-site cart won't work anyway....)\u003c/p\u003e\n      \u003cp\u003eFor the site links header sidebox, add the following code to your include/templates/YOUR_TEMPLATE/common/tpl_header.php file\u003c/p\u003e\n      \u003cpre name=\"code\" class=\"php:nogutter\"\u003e\u0026lt;!-- bof header Site links - Multi site module--\u0026gt;\n      \u0026lt;?php require(DIR_WS_MODULES . 'sideboxes/site_links_header.php');?\u0026gt;\n\u0026lt;!-- bof header Site links - Multi site module--\u0026gt;\u003c/pre\u003e\n    \u003c/li\u003e\n  \u003c/ol\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"version_history\" id=\"version_history\"\u003e\u003c/a\u003eVersion History\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n  \u003cp\u003eVersion 1.0.1 Current- Release Date: 2013-02-09 by \u003ca href=\"http://zen4all.nl\"\u003eDesign75\u003c/a\u003e\u003c/p\u003e\n    \u003cul\u003e\n    \u003cli\u003eUpdated site links sodebox to use the on/off switch properly\u003c/li\u003e\n    \u003cli\u003eAdded a header site link side box. This box can be placed any where you like and displays a horizontal bar with the site links.\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003cp\u003eVersion 1.0 Current- Release Date: 2013-01-21 by \u003ca href=\"http://zen4all.nl\"\u003eDesign75\u003c/a\u003e\u003c/p\u003e\n    \u003cul\u003e\n    \u003cli\u003eUpdated most files to contain the code of Zen Cart 1.5.1\u003c/li\u003e\n    \u003cli\u003eAdded the admin module registration for Zen Cart 1.5.x\u003c/li\u003e\n    \u003cli\u003eThe module is now multilingual on the admin side as well as the front-end\u003c/li\u003e\n    \u003cli\u003eThe site-link side-box has its own tpl file\u003c/li\u003e\n    \u003cli\u003eAdded SyntaxHightlighter 1.5.1 to multisite.php for easier reading and copying code\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003cp\u003eVersion 0.4 -  Release Date: 2007-08-07\u003c/p\u003e\n    \u003cul\u003e\n      \u003cli\u003eInitial release\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"faqs\" id=\"faqs\"\u003e\u003c/a\u003eFAQs\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cp\u003eMaybe this section will be used in a later release\u003c/p\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"support\" id=\"support\"\u003e\u003c/a\u003eSupport\u003c/h2\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cp\u003eYou will find the official support thread at the link below. Please feel free to post any comments or questions there.\u003c/p\u003e\u003ca href=\"http://www.zen-cart.com/showthread.php?63997-MultiSite-Module-Support-Thread\"\u003eSupport thread\u003c/a\u003e\n  \u003c/div\u003e\n  \u003ch2\u003e\u003ca name=\"donations\" id=\"donations\"\u003e\u003c/a\u003eDonations\u003c/h2\u003e\n  \u003cp\u003eOf course this module is presented to you for free, but you can always buy me a cup of coffee.\u003c/p\u003e\n  \u003cdiv id=\"contentDescription\"\u003e\n    \u003cform action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\"\u003e\n\u003cinput type=\"hidden\" name=\"cmd\" value=\"_s-xclick\"\u003e\n\u003cinput type=\"hidden\" name=\"hosted_button_id\" value=\"DEA76C69CH4CG\"\u003e\n\u003cinput type=\"image\" src=\"https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal — The safer, easier way to pay online.\"\u003e\n\u003cimg alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif\" width=\"1\" height=\"1\"\u003e\n    \u003c/form\u003e\n  \u003c/div\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzen4all-nl%2Fmultisite-module-for-zen-cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzen4all-nl%2Fmultisite-module-for-zen-cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzen4all-nl%2Fmultisite-module-for-zen-cart/lists"}