Learn to change the Opencart installation folder

For example, if you have installed Opencart at https://www.opencartstore.com/store and if you would like to transfer it to another directory let's say https://www.opencartstore.com/store1 

For this, you would like to modify the following 2 files:

http://www.opencartstore.com/shop/configure.php

and

http://www.opencartstore.com/shop/admin/configure.php

Now you need to find the following lines in these 2 files:

// HTTP

define('HTTP_SERVER', 'http://opencartstore.com/newfolder');

define('HTTP_IMAGE', 'http://opencartstore.com/newfolder/image/');

define('HTTP_ADMIN', 'http://opencartstore.com/newfolder/admin/');

// HTTPS

define('HTTPS_SERVER', 'http://opencartstore.com/newfolder/');

define('HTTPS_IMAGE', 'http://opencartstore.com/newfolder/image/');

// DIR

define('DIR_APPLICATION', '/home/username/public_html/newfolder/catalog/');

define('DIR_SYSTEM', '/home/username/public_html/newfolder/system/');

define('DIR_DATABASE', '/home/username/public_html/newfolder/system/database/');

define('DIR_LANGUAGE', '/home/username/public_html/newfolder/catalog/language/');

define('DIR_TEMPLATE', '/home/username/public_html/newfolder/catalog/view/theme/');

define('DIR_CONFIG', '/home/username/public_html/newfolder/system/config/');

define('DIR_IMAGE', '/home/username/public_html/newfolder/image/');

define('DIR_CACHE', '/home/username/public_html/newfolder/system/cache/');

define('DIR_DOWNLOAD', '/home/username/public_html/newfolder/download/');

define('DIR_LOGS', '/home/username/public_html/newfolder/system/logs/');

Note: You have to replace opencartstore.com with your domain name.

  • opencart, modify, direcotry, shopping cart, online store
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to secure your WordPress?

WordPress is an open-source application so security level issues you may face but Do not worry...

Install themes into the wordpress

What is the WordPress theme? A WordPress Theme is a collection of files that work together to...

Top 5 e-commerce applications

What is e-commerce?   E-commerce (electronic commerce) is the buying and selling of goods and...

How to Install Wordpress Website?

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL....

How To Check DotNetNuke Install Instance Version?

> Please login to your DNN site with your host account. > Please Navigate to Host >...