Quote Originally Posted by lgrant View Post
It's actually really easy to change the domain. you need to modify two files

includes/configure.php and
admin/includes/configure.php

search for the current domain and change it to the new domain.

That's all you need to make the site work on a new domain. However, there are several other places that contain site name, email address, etc.. which usually have domain the same domain and should be changed to.

For example, the database has many references to the domain. For that i prefer to use phpMyAdmin for mysql databases. Select the database then use the SEARCH tab. Make sure to select all tables then type in the domain name in the search field and press go. It'll return a list of tables that need to be updated. It's really easy to update through the tool

Many other files have domain name in them but they are informational, so the site will run just by changing configure.php, but the other fields need to be changed to look right.

For example


define_contact_us.php
define_returns.php
define_site_faq.php
information.php

several others too

Iuse a search toold to find all these. Personally, I use Microsoft visual studio and choose edit/find/in file, then give it the path to the document root and it'll return every file I need to edit.

if you're working on unix/linux you can run:

cd ...to the document root...
find . -type f -exec grep -il "search value" {} \;

this will result in a list of files that have the search string in it.

Hope this helps
Or you can use the built-in search tool: The Developers Toolkit. Related FAQs: https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39