(Choose this version: Install Instructions Cleaned Up Maggie Elrawy 2 Jun 2004)
A. Install Files
Copy the files as they occur in their appropriate directories. Be sure to backup your originals first.
If you have already made some modifications to any of these files use a program such as Beyond Compare to see what changes were made.
Connect with your FTP program and upload the following files:
/catalog/checkout_process.php
/catalog/checkout_success.php
/catalog/login.php
/catalog/Order_Info.php
/catalog/Order_Info_Process.php
/catalog/Order_Info_Check.php
/catalog/includes/login_pwa.php (has the boxes stacked, if you want side-by-side boxes rename and use the login_pwa_optional.php as explained below)
/catalog/includes/login_pwa_optional.php (this is for side-by-side boxes, if you want them this way rename this login_pwa.php and upload it instead of the previous file)
/catalog/includes/login_acc.php
/catalog/includes/modules/Order_Info_Check.php
/catalog/includes/modules/languages/english/images/buttons/button_create_account.gif
B. MySQL Database Changes
Log into your Netfirms Members Control Panel and click the Site Tools link.
1. Backup your MySQL database as a precautionary measure. 2. Click the MySQL Databases link located on the left hand side of the screen.
2. Click the phpmyadmin link within the database that you Commerce Pro store uses.
3. Within phpmyadmin, click the Database name located near the top left crner of the web page.
4. Click the SQL link located along the top of the web page.
5. Wihtin the large text box copy and paste these lines:
ALTER TABLE customers ADD purchased_without_account TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL AFTER customers_id;
ALTER TABLE customers ADD INDEX (purchased_without_account);
INSERT INTO configuration_group VALUES (40, 'Accounts', 'Configuration of Account settings', 40, 1);
INSERT INTO configuration VALUES ('', 'Purchase Without Account', 'PWA_ON', 'true', 'Allow Customers to purchase without an account', 40, 1, '2003-04-08 13:07:44', '2003-04-08 12:10:51', NULL, 'tep_cfg_select_option(array(true, false),');
ALTER TABLE orders ADD purchased_without_account TINYINT (1) UNSIGNED
DEFAULT '0' NOT NULL;
6. Click the Go button to execute these scripts.
C. Edit Files:
Now we will need to alter some files. We will require an FTP program to connect to the server and download these files. We will then edit each and upload the changed file back to the server.
1. Once connected to your account with an FTP program download these files:
/catalog/includes/filenames.php
/catalog/includes/languages/english.php
/catalog/includes/languages/english/login.php
2. Once successfully downloaded, open the filenames.php using a text editor, preferrably MS Notepad. You can find this within Start > Programs > Accessories.
3. Add these lines to the bottom of the script just above the line that has "?>":
//Begin Checkout Without Account Modifications
define('FILENAME_PWA_PWA_LOGIN', 'login_pwa.php');
define('FILENAME_PWA_ACC_LOGIN', 'login_acc.php');
define('FILENAME_CHECKOUT', 'Order_Info.php');
//End Checkout Without Account Modifications
4. Save the file and upload it back to the same location.
5. Open the english.php using a text editor, preferrably MS Notepad. You can find this within Start > Programs > Accessories.
6. Add these lines to the bottom of the script just above the line that has "?>":
/*Begin Checkout Without Account images*/
define('IMAGE_BUTTON_CREATE_ACCOUNT', 'Create Account');
/*End Checkout WIthout Account images*/
7. Save the file and upload back to its location.
8. Open the login.php using a text editor, preferrably MS Notepad. You can find this within Start > Programs > Accessories.
9. Add these lines to the bottom of the script just above the line that has "?>":
// Begin Checkout Without Account v0.70 changes
define('PWA_FAIL_ACCOUNT_EXISTS', 'An account already exists for the email address {EMAIL_ADDRESS}. You must login here with the password for that account before proceeding to checkout.');
// Begin Checkout Without Account v0.60 changes
define('HEADING_CHECKOUT', 'Proceed Directly to Checkout');
define('TEXT_CHECKOUT_INTRODUCTION', 'Proceed to Checkout without creating an account. By choosing this option none of your user information will be kept in our records, and you will not be able to review your order status, nor keep track of your previous orders.');
define('PROCEED_TO_CHECKOUT', 'Proceed to Checkout without Registering');
// End Checkout Without Account changes
10. Save the file and upload it back to its location.
11. Now all the changes have been completed.