Installing the One Stop Order Processing software onto your osCommerce/CRE Loaded website

1 Copy (upload) the files in the C:\OSOP\Main\osCommerce\admin folder to the administration folder on your web server (by default called admin). This will add files to the existing folders (directories) on your server. For example,

C:\OSOP\Main\osCommerce\admin\includes\classes\export.php

will be copied to

/catalog/admin/includes/classes/export.php

on your web server.

If you are using osCommerce use the following approach. For CRE Loaded use the CRE Loaded section

osCommerce

2 Amend the column_left.php file on your server (by default in /catalog/admin/includes/column_left.php). Add the line

require(DIR_WS_BOXES . 'onestop.php');

to the end of the menu options. An example, is shown below in red.

<?php
/*
$Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2002 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_BOXES . 'configuration.php');
require(DIR_WS_BOXES . 'catalog.php');
require(DIR_WS_BOXES . 'modules.php');
require(DIR_WS_BOXES . 'customers.php');
require(DIR_WS_BOXES . 'taxes.php');
require(DIR_WS_BOXES . 'localization.php');
require(DIR_WS_BOXES . 'reports.php');
require(DIR_WS_BOXES . 'tools.php');
require(DIR_WS_BOXES . 'onestop.php');
?>

CRE Loaded

3 Amend the customers.php file on your server (by default in /catalog/admin/includes/boxes/customers.php). Add the line


tep_admin_files_boxes('orders_export.php', 'One Stop Order Processing', 'SSL') .

in the Customers the menu options. An example, is shown below in red.

tep_admin_files_boxes('','&nbsp;&nbsp;' . BOX_HEADING_CUSTOMERS) .
tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS, 'SSL') .
tep_admin_files_boxes(FILENAME_CREATE_ORDER, BOX_MANUAL_ORDER_CREATE_ORDER, 'SSL') .
tep_admin_files_boxes('orders_export.php', 'One Stop Order Processing', 'SSL') .
tep_admin_files_boxes(FILENAME_CREATE_ORDERS_ADMIN, BOX_CREATE_ORDERS_ADMIN, 'SSL') .
tep_admin_files_boxes(FILENAME_PAYPAL, BOX_CUSTOMERS_PAYPAL, 'SSL') .




That's it. Now when you access the main admin menu a new menu option will appear that will allow you to download order information.



osCommerce Advanced options
If you are using discounts on your website and are using a non standard discount module you will need to update the discount module being used. To do this use the following procedure:

1 Amend the export.php file (by default in /catalog/admin/includes/classes/export.php).
2 Amend the line define('MOD_DISCOUNT', ''); to use the module that you are using. The line to amend is shown in red below:

<?php
/**
*
* One_Stop_Export - Export Class for
* One Stop Order Processing
*
* @package export
* @author 1StopOrders.com
* @copyright 1StopOrders.com 2008
*
* $Revision:$
*
*/

// Note: Only change these if you have customised your order totals modules
define('MOD_SUBTOTAL', 'ot_subtotal');
define('MOD_TAX', 'ot_tax');
define('MOD_SHIPPING', 'ot_shipping');
define('MOD_TOTAL', 'ot_total');
define('MOD_DISCOUNT', '');


You could change this to use your module (ot_coupon). So the last line would become:

define('MOD_DISCOUNT', 'ot_coupon');