Modifying Configuration File
Previous Topic  Next Topic 

Squirrelcart needs to know certain information about your server in order to function. This information is stored in the file "squirrelcart/config.php" on your server. 

 

1. Open config file

 

Open the config.php file on your server, using your HTML editor. You should see the following:

 

 

 

2. Modify the configuration variables

 

In the image above, the variables that you need to set appear in black text. You will be modifying the text following the variable name, that appears between the quotes. Instructions for setting each variable appears immediately above. Be sure to leave the semicolon after each line to avoid PHP parse errors. After you have modified the file, save it.

 

3. Test changes

 

After you save your changes, you will need to test them. Open your cart page in a browser. The URL for it should be equal to the URL you set for the $site_www_root variable, plus the name of the page specified in the $cart_page variable. In most cases, the URL would be similar to http://YourWebSite.com/store.php. 

 

If all of your information was correct, you should receive the following message:

 

        "Connected successfully to MySQL, and to your database. No database records found."

 

If you get an error, double check your changes for the config file, and fix any necessary mistakes or typos. Once you have all the settings correct, continue to the next topic. If you have difficulties, contact our support department.