Michaeljm Posted May 12, 2016 Share Posted May 12, 2016 Hi, How do I edit the domain in CC6 outside the admin panel? In older versions of cubecart I could do it in config file via ftp. Is there other things I need to do when change the URL to an other? Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 12, 2016 Share Posted May 12, 2016 Other than a field on the SSL tab in Store Settings, CC5/6 is very capable of determining where it is. If a request for a page successfully arrives as a web server, the web server makes certain information available to PHP. This information includes the "hostname" and "path/scriptname" of the request. Then, CubeCart can query this information from PHP and figure out where it is. Therefore, there is no longer any need to declare hostnames and paths in the global.inc.php file. You can. in fact, include those statements in global.inc.php, but that may lead to certain things about CubeCart to be broken. Quote Link to comment Share on other sites More sharing options...
Michaeljm Posted May 12, 2016 Author Share Posted May 12, 2016 Hi, Thanks for your reply. So how do I change the domain in Store Settings when I cant access the admin panel? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 12, 2016 Share Posted May 12, 2016 Using an external database utility, such as phpMyAdmin, look in the table Cubecart_config. Find a record where the value in the 'name' column is "config". The associated value in the 'array' column has everything that is seen in Store Settings. This value is BASE_64 encoded, so to be able to read it, that value will need to be BASE_64 decoded. The phpMyAdmin may have the ability to do this directly on the cell's contents when viewing the table. Once decoded, you will be looking for "standard_url". A utility program that can access the database config table can be obtained which makes changing Store Settings outside of CubeCart easier. Or. in /includes/global.inc.php, you can add the following statements. They will override whatever is set in Store Settings. $glob['storeURL'] = 'http://www.example.com/store'; $glob['standard_url'] = 'http://www.example.com/store'; $glob['ssl_url'] = 'https://www.example.com/store'; $glob['cookie_domain'] = '.example.com'; $glob['rootRel'] = '/store/'; // Use a single slash, /, for no path. Do you know why it is that you cannot access the admin? Quote Link to comment Share on other sites More sharing options...
Michaeljm Posted May 13, 2016 Author Share Posted May 13, 2016 Great, That did it for me! Thanks a lot. I change the DNS and I got the problem. Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.