Code: Select all
define('DIR_TEMPLATE', 'C:\htdocs\opencart/catalog/view/theme/default/template/');
Code: Select all
define('DIR_TEMPLATE', 'C:\htdocs\opencart/catalog/view/theme/default/template/');
Actually, it should be more likestarchy wrote:Bug report at bug tracker in case other people are having trouble installing. Just open config.php and change to something similar to:
Code: Select all
define('DIR_TEMPLATE', 'C:\htdocs\opencart/catalog/view/theme/default/template/');
Code: Select all
define('DIR_TEMPLATE', 'C:\htdocs\opencart/catalog/view/theme/');
Code: Select all
$output .= 'define(\'DIR_TEMPLATE\', \'' . realpath(dirname(__FILE__) . '/..') . '/catalog/view/template/\');' . "\n";
Code: Select all
$output .= 'define(\'DIR_TEMPLATE\', \'' . realpath(dirname(__FILE__) . '/..') . '/catalog/view/theme/\');' . "\n";
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Probably best to just keep them all going the same way:fido-x wrote: Actually, it should be more likeCode: Select all
define('DIR_TEMPLATE', 'C:\htdocs\opencart/catalog/view/theme/');
Code: Select all
define('DIR_TEMPLATE', 'C:/htdocs/opencart/catalog/view/theme/');
You're right, but then, all I did in that particular case was copy the code from the previous post and delete the "default/template/" from the end of the line.Qphoria wrote:Probably best to just keep them all going the same way:Code: Select all
define('DIR_TEMPLATE', 'C:/htdocs/opencart/catalog/view/theme/');
Code: Select all
define('DIR_TEMPLATE', '/home/username/public_html/catalog/view/theme/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
That is probably the easiest way.fido-x wrote:if you make the change I suggested to "install/index.php" BEFORE installing, you don't have to fix things up afterwards.
Code: Select all
$output .= '// CATALOG' . "\n";
$output .= 'define(\'DIR_CATALOG_TEMPLATE\', \'' . realpath(dirname(__FILE__) . '/..') . '/catalog/view/theme/\');' . "\n";
Code: Select all
$directories = glob(DIR_CATALOG_TEMPLATE . '*', GLOB_ONLYDIR);
Code: Select all
// CATALOG
define('DIR_CATALOG_TEMPLATE', '/opt/lampp/htdocs/catalog/view/theme/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Code: Select all
<?php if ($template['name'] == $config_template) { ?>
Code: Select all
<?php if ($template['value'] == $config_template) { ?>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Code: Select all
define('DIR_CATALOG', 'yourpath/opencart/');
andfido-x wrote:There are more bugs related to this particular issue in the administration. Here are the fixes:
In "install/index.php", insert (at line 405)Then change line line 177 in "admin/controller/setting/setting.php" to:Code: Select all
$output .= '// CATALOG' . "\n"; $output .= 'define(\'DIR_CATALOG_TEMPLATE\', \'' . realpath(dirname(__FILE__) . '/..') . '/catalog/view/theme/\');' . "\n";
If you don't wish to re-install, you can insert:Code: Select all
$directories = glob(DIR_CATALOG_TEMPLATE . '*', GLOB_ONLYDIR);
into "admin/config.php", but you will still need to make the change to "admin/controller/setting/setting.php".Code: Select all
// CATALOG define('DIR_CATALOG_TEMPLATE', '/opt/lampp/htdocs/catalog/view/theme/');
will get rid of that error.fido-x wrote:Follow up -- you will also need to change line 63 in "admin/view/template/setting/setting.tpl" from:toCode: Select all
<?php if ($template['name'] == $config_template) { ?>
Code: Select all
<?php if ($template['value'] == $config_template) { ?>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
This needs to be done to show the selected template in the admin. It just shows "default" otherwise.fido-x wrote:Follow up -- you will also need to change line 63 in "admin/view/template/setting/setting.tpl" from:toCode: Select all
<?php if ($template['name'] == $config_template) { ?>
Code: Select all
<?php if ($template['value'] == $config_template) { ?>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Users browsing this forum: No registered users and 9 guests