Post by mrwildbob » Wed Dec 23, 2015 4:31 am

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

Thanks
boB

Running OpenCart v2.1.0.1


New member

Posts

Joined
Wed Dec 23, 2015 4:24 am

Post by jimmyphong » Thu Dec 24, 2015 2:40 am

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

News CMS || Plus SEO || Live Price change with Option Select


Active Member

Posts

Joined
Sat Aug 13, 2011 2:48 am


Post by Randem » Thu Dec 24, 2015 6:22 am

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


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by mrwildbob » Fri Dec 25, 2015 12:05 am

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 for the info. As soon as I get my cart ready to deploy, I am going to move and edit like you mentioned.

Thanks
boB

Running OpenCart v2.1.0.1


New member

Posts

Joined
Wed Dec 23, 2015 4:24 am
Who is online

Users browsing this forum: No registered users and 112 guests