init_templates.php file gets replaced where code
$template_dir = "";
$sql = "select template_dir
from " . TABLE_TEMPLATE_SELECT . "
where template_language = 0";
$template_query = $db->Execute($sql);
$template_dir = $template_query->fields['template_dir'];
$sql = "select template_dir
from " . TABLE_TEMPLATE_SELECT . "
where template_language = '" . $_SESSION['languages_id'] . "'";
$template_query = $db->Execute($sql);
if ($template_query->RecordCount() > 0) {
$template_dir = $template_query->fields['template_dir'];
}
gets commented out. So which file will be responsible to load a template?
TheGuest:
So as I am trying to bring the main site up I have this issue:
main site asdf.com
second shop asdf.asdf.com
for now I just need to bring main site up - asdf.com
I did not modify any files but added new files to admin area and to includes. I also created a config file - www.asdf.com_config.php which has the following:
<?php
$template_dir = "cold_steel";
define('SITE_NAME','asdf');
define('HTTP_SERVER', 'http://www.asdf.com');
?>
So what happens now is that when I go to my site http://asdf.com or http://www.asdf.com it loads (on URL change) the site with products and so forth but it does not select right template. It looks like it picked up default one. Side boxes are missing as well.
I spent some time already but can't figure out why it's not picking up cold_steel template. Folder under templates is called 'cold_steel'.
Any thoughts?
Thanks,
TheGuest