Hello Everyone,
I currently have a site running simple static pages that I plan to replace with OpenCart. I installed OC into a directory off the root. When I am done with the modification and ready to go live, is it as easy as moving the OC cart files to the root? Will anything break?
Thanks
boB
yes. when you move opencart form directory to root you need change absolute path in config file
example
in config file (both admin/config.php and config.php)
define('DIR_APPLICATION', 'var/user/www/opencart231/catalog/');
this is my path , because i installed opencart in sub directory called opencart231
when i move to root you need edit it to
define('DIR_APPLICATION', 'var/user/www/catalog/');
and do same in other line in config.php file
example
in config file (both admin/config.php and config.php)
define('DIR_APPLICATION', 'var/user/www/opencart231/catalog/');
this is my path , because i installed opencart in sub directory called opencart231
when i move to root you need edit it to
define('DIR_APPLICATION', 'var/user/www/catalog/');
and do same in other line in config.php file
News CMS || Plus SEO || Live Price change with Option Select
I am imaging that when you say "move", you mean that you will move all the OC software, Data & Images. So, if you move OpenCart to the root you will need to remove all paths that have the installed folder name (opencart231) in it; in your config.php files (root and admin) so that all parameters point to the root.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Thanks for the info. As soon as I get my cart ready to deploy, I am going to move and edit like you mentioned.jimmyphong wrote:yes. when you move opencart form directory to root you need change absolute path in config file
example
in config file (both admin/config.php and config.php)
define('DIR_APPLICATION', 'var/user/www/opencart231/catalog/');
this is my path , because i installed opencart in sub directory called opencart231
when i move to root you need edit it to
define('DIR_APPLICATION', 'var/user/www/catalog/');
and do same in other line in config.php file
Thanks
boB
Running OpenCart v2.1.0.1
Who is online
Users browsing this forum: No registered users and 112 guests