I want just one code base, Drupal allows this but Zen Cart default does not allow this.
Is it possible to do this by pulling in a different configure.php.
Each store will have its own DB and catalog directory.
Any help appreciated.
I want just one code base, Drupal allows this but Zen Cart default does not allow this.
Is it possible to do this by pulling in a different configure.php.
Each store will have its own DB and catalog directory.
Any help appreciated.
There is a multi site module but it is designed to share one DB...and manage all from one admin center
The base code is only about 20K
Drupal is not a cart
I realize that Drupal is not a cart and its nice to have one code base to maintain. The multi store is more for one admin who has multiple stores like Best buy canada, usa etc.
I'm looking just to have one code base. If I try to get different configure.php files based on the URL, I'm wondering if it'll work.
Then just point to different directory for images for example
or any directory that is store specific. This is a bit of a hack and would you advise just installing zen cart twice.
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
I think it would be significantly less work to install Zen Cart twice than to figure out all of the hacks you need to make one code base work. If you want the same templates, you can copy over (most of) the template files from one to the other.