Read First
Steps
1. Download and unzip the upgrade files. Be sure to use the same version (Zend/Ioncube PHP4/5).
2. Upload the changed files replacing the old files. (Only changed or new
files are included in the download.)
-- All the
files in the functions folder (includes/functions/*) must be uploaded in
BINARY mode.
-- All the files in
the ioncube folder must be uploaded in BINARY mode.
(Ioncube Version Only)
3. CHMOD 777 writable admin/cars_com_files if you will be using the cars.com feature.
4. Open config.php in a text editor and paste in the following code anywhere
above the closing ?> tag.
After pasting be sure to go through and
set them.
---------------------- START CONFIG CODE ----------------------------
// Cars.com Settings
// Notes:
// You need to contact Cars.com to get
an FTP account setup with them.
// Only listings with the required fields
will be included. Overlength fields will be trimmed.
// Sold and Hidden
listings will not be included.
// Required Minimum Fields - Type(New/Used),
Stock Number (No special characters), VIN, Year, Make, Model
// Year, Price
and Mileage are numeric only.
$Cars_com_Active =
1; // 1=On
0=Off
$Cars_com_DealerId = "CC1234"; // Your Cars.com Dealer ID - (Case
Sensitive)
$Cars_com_Used = 0; //
Inlcude Used Inventory 1=Yes | 0=No
$Cars_com_New =
0; // Include New Inventory
1=Yes | 0=No
$Cars_com_NumImages = 9; //
Maximum Number of images to include per listing. 9 is the
Max.
$Cars_com_Pending = 0;
// Include listings that are marked pending. 1=Yes 0=No
$Cars_com_SalePrice =
1; // List the sale price instead of full
price when available? 1=Yes 0=No
// Data File Path (NOT URLS) WITH TRAILING
SLASH /
// Must be the Full File Path
// This folder must be writable
(chmod 777)
// The data file and image file will be created in this
folder
$Cars_com_FilePath =
"D:/xampp/htdocs/builds/autodealer/admin/cars_com_files/";
// FTP Upload information (FTP support in PHP must be enabled)
// This
will allow the program to automatically upload the files to
cars.com.
$cars_ftp_enable = 1; // Enable automatic FTP upload to cars.com
1=ON 0=OFF
// Cars.com Testing - Set to Yes during initial cars.com test
setup. Once cars.com has verified your test
// files set it to No for normal
operation. Controls FTP feature only.
// No = Normal Locations | Yes = Test
Folder
$cars_test_mode = 0; // 1=Yes 0=No
$cars_ftp_server='sdstech.com';
// Cars.com ftp server
$cars_ftp_user_name='sdstech'; // Cars.com ftp
username
$cars_ftp_user_pass='flip2728'; // Cars.com ftp password
$AT_Used = 1; // Inlcude Used Inventory 1=Yes | 0=No
$AT_New =
1; // Include New Inventory 1=Yes | 0=No
// Autotrader.com FTP Upload information (FTP support in PHP must be
enabled)
// This will allow the program to automatically upload the files to
autotrader.com.
// NOTE: Do not enable FTP until your test file has been
approved and you get you FTP info from autotrader.com
$AT_ftp_enable = 0; //
Enable automatic FTP upload to autotrader.com 1=ON
0=OFF
$AT_ftp_server='domain.com'; // autotrader.com ftp
server
$AT_ftp_user_name='user'; // autotrader.com ftp
username
$AT_ftp_user_pass='password'; // autotrader.com ftp password
// Files - Upload PDF, DOC, Etc via the admin. 5 per lsiting
max.
$file_upload = 0; // 1=on | 0=off
------------------ END CONFIG CODE ----------------------------
5. Open includes/languages/english.php and paste in the following anywhere above the closing ?> tag.
------------------ START ENGLISH.PHP CODE ---------------------
// Cars.com
$L_Cars_com_DF =
"Cars.com FTP Datafeed";
$L_Cars_com_Done = "Data File and
Image File Creation Complete.";
$L_Cars_com_FileName =
"Data File Name";
$L_Cars_com_NumListings = "Number of
Listings Included";
$L_Cars_com_Disabled = "The Cars.com
feature is disabled or Dealer ID is missing.";
$L_Cars_com_Settings =
"Used and New Listings are BOTH set to be
excluded.";
$L_Cars_com_FixConfig = "Please adjust the
settings in the config file and try again.";
$L_Cars_com_NoListings = "No Listings with the required information were
found.";
$L_Cars_com_FileError = "Data file creation or
modification failed. Please check your settings and file permissions and try
again.";
$L_Cars_com_imagefile = "Image File
Name";
$L_Cars_com_test = "Test Mode
Enabled";
$L_Cars_com_test_fail = "Unable to change to
CCTEST folder";
$L_Cars_com_test_success = "Changed to
CCTEST folder";
$L_Cars_com_Started = "File Creation
Started";
$L_Cars_com_FTP_Started = "Connecting to
Cars.com FTP";
$L_Cars_com_FTP_Success = "FTP
Connected";
$L_Cars_com_FTP_Disconnect = "FTP
Disconnected";
$L_Cars_com_FTP_Fail = "FTP Connection
Failed";
$L_Cars_com_FTP_UP_Start = "FTP Upload
Started";
$L_Cars_com_FTP_UP_DSuccess = "FTP Data File
Upload Complete";
$L_Cars_com_FTP_UP_ISuccess = "FTP Image
File Upload Complete";
$L_Cars_com_FTP_UP_DFail = "FTP
Data File Upload Failed";
$L_Cars_com_FTP_UP_IFail = "FTP
Image File Upload Failed";
$L_Cars_com_ChangeDir_Fail =
"Couldn't change directory to";
$L_Cars_com_Complete =
"Operations Complete";
$L_Cars_com_Download = "Data File
Downloads";
$L_Cars_com_Download_Info = "If you would like
to download the files, please right click the link below.<br />(Choose:
Save Target As or Save Link As)";
$L_Cars_com_Download_Link = "---- Data File Download Link
----";
$L_Cars_com_Download_Link_image = "---- Image File
Download Link ----";
$L_Cars_com_Finder_Title = "Cars.com
Listing Finder";
$L_Cars_com_Finder_Info = "The listings
below are missing some required information and will not be included in the data
file.<br /><br />Click the link to edit the listing in a new
window.";
$L_Cars_com_Finder_Back = "Go Back";
$L_AT_Started = "File Creation
Started";
$L_AT_FTP_Started = "Connecting to AutoTrader
FTP";
$L_AT_FTP_Success = "FTP
Connected";
$L_AT_FTP_Disconnect = "FTP
Disconnected";
$L_AT_FTP_Fail = "FTP Connection
Failed";
$L_AT_FTP_UP_Start = "FTP Upload
Started";
$L_AT_FTP_UP_Success = "FTP Upload
Complete";
$L_AT_FTP_UP_Fail = "FTP Upload
Failed";
$L_AT_Complete = "Operations
Complete";
$L_AT_Download = "Data File
Download";
$L_AT_Download_Info = "If you would like to
download the data file, please right click the link below.<br />(Choose:
Save Target As or Save Link As)";
$L_AT_Download_Link =
"---- Download Link ----";
$L_AT_Finder_Title =
"AutoTrader Listing Finder";
$L_AT_Finder_Info = "The
listings below are missing some required information and will not be included in
the data file.<br /><br />Click the link to edit the listing in a
new window.";
$L_AT_Finder_Back = "Go Back";
$L_msrp = "MSRP";
$L_fileTypes =
"(PDF, DOC, Etc...)";
$L_resetLabel = "Password
Recovey";
$L_passEmailAddress = "Email
Address";
$L_passResetButton = "Click to Reset Your
Password";
$L_passResetNote = "*** Both Fields are
Required and MUST match the info in the database. ***";
$L_trytAgain = "Please go back and try again.";
$L_passResetNoMatch = "There are no matching records for the usename and email
that you entered.<br /><br />Please try
again.";
$L_passResetFailed = "Failed to reset
password.";
$L_passResetSuccess = "Your password has been
reset. Please check your email.";
------------------ END ENGLISH.PHP CODE ---------------------------------
6. Open templates/*/admin_left_menu.php and paste in the following code. Your
current template
minimum but you should do them all in
case you switch later.
------------------------ BEGIN ADMIN_LEFT_MENU.PHP --------------------------------
<a href="cars-com.php">Cars.com</a><br />
--------------------- END HEADER.PHP CODE ---------------------------------
7. Open templates/*/admin_header.php and REMOVE the following code.
Your current template
minimum but you should do them all
in case you switch later.
-------------------- BEGIN ADMIN_HEADER.PHP --------------------------------
<script language="JavaScript" type="text/javascript"
src="../includes/javascript/wysiwyg/wysiwyg.js">
</script>
-------------------- END ADMIN_HEADER.PHP -----------------------------------
8. Open your browser to http://yourdomain.com/sql_update.php and click the button to update your database. Remove sql_update.php from the server once the update is complete.
Upgrade Complete.
If you need assistance please use our support desk at:
https://www.selectdevelopment.com/support/