OpenCart has 2 config files which define the domain paths in use:
- Log into your site’s cPanel
- Open the “File Manager” and navigate
to your /public_html/ folder if you have OC installed in the root,
otherwise navigate to the correct folder. - Check that the file “/config.php” is writeable (permission 644), open and via “code editor” edit the following lines:
| // HTTP define(‘HTTP_SERVER’, ‘http://your_new_domain.com/’); // HTTPS |
- save the file, and set permission to “400” (read-only)
- Check that the file “/admin/config.php” is writeable (permission 644), open and via “code editor” edit the following lines:
| // HTTP define(‘HTTP_SERVER’, ‘http://your_new_domain.com/admin/’); define(‘HTTP_CATALOG’, ‘http://your_new_domain.com/’); // HTTPS |
- save the file, and set permission to “400” (read-only)
If your site does not have an SSL certificate, then in the above examples, replace “https” with “http”.
Go to your shop/admin area.
go to Settings >> choose your shop >> Store >> change your new email box
go to mail >> change your new email box
go to Ftp >> change your new FTP Host