Ok, downloaded COWOA Updated and Combined for ZC v1.5.x - Version: v2.4 (seems to be the latest)
Hmmm...
CSAR uses the latest customers.php file with this header
* @copyright Copyright 2003-2014 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license
http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: DrByte Jun 30 2014 Modified in v1.5.4 $
with all the other standard ZC v1.5.4 code
On the other hand the latest version of COWOA still uses an old file. According to the header it is from ZC v1.5.1 ..... but read on!:
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license
http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: Ian Wilson Tue Aug 7 15:17:58 2012 +0100 Modified in v1.5.1 $
* @version $Id: Integrated COWOA v2.4 - 2007 - 2013
After digging further I found that COWOA even uses most of the code which was prevalent in ZC v1.3.9!!!
To get to that conclusion I had to unzip several old ZC install files and do comparisons.
This part adds the additional column for CSAR (1.5.4) which makes it the second last column:
PHP Code:
<td class="dataTableContent" align="center">
<?php if ($customers->fields['customers_privileges'] == 0) { ?>
<?php echo zen_image(DIR_WS_IMAGES . 'icon_red_off.gif', IMAGE_ICON_STATUS_OFF); ?>
<?php } else { ?>
<?php if ($customers->fields['customers_privileges'] > 0) {
echo zen_draw_form('setstatus', FILENAME_CUSTOMERS, 'action=status&cID=' . $customers->fields['customers_id'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . (isset($_GET['search']) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON; ?>" />
<input type="hidden" name="current" value="<?php echo $customers->fields['customers_privileges']; ?>" />
</form>
<?php } else {
echo zen_draw_form('setstatus', FILENAME_CUSTOMERS, 'action=status&cID=' . $customers->fields['customers_id'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . (isset($_GET['search']) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF; ?>" />
<input type="hidden" name="current" value="<?php echo $customers->fields['customers_privileges']; ?>" />
</form>
<?php } ?>
<?php } ?>
</td>
As I see it the COWOA part replaces the standard 1.3.9 code which is
PHP Code:
<td class="dataTableContent" align="center"><?php echo ($customers->fields['customers_authorization'] == 4 ? zen_image(DIR_WS_IMAGES . 'icon_red_off.gif', IMAGE_ICON_STATUS_OFF) : ($customers->fields['customers_authorization'] == 0 ? '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_green_on.gif', IMAGE_ICON_STATUS_ON) . '</a>' : '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>')); ?></td>
with
PHP Code:
<td class="dataTableContent" align="center">
<?php if ($customers->fields['customers_authorization'] == 4 ? zen_image(DIR_WS_IMAGES .
'icon_red_off.gif', IMAGE_ICON_STATUS_OFF) : ($customers->fields['customers_authorization'] == 0 ?
'<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields
['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . (isset($_GET['search']) ? '&search=' . $_GET['search'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_green_on.gif',
IMAGE_ICON_STATUS_ON) . '</a>' : '<a href="' . zen_href_link(FILENAME_CUSTOMERS,
'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->
fields['customers_id'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . (isset($_GET['search']) ? '&search=' . $_GET['search'] : ''), 'NONSSL') . '">' .
zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>')); ?> </td>
<?php if ($customers->fields['COWOA_account'] == 1) { ?>
<td class="dataTableContent" align="center"><?php echo 'COWOA'; ?> </td>
<?php }else{ ?>
<td class="dataTableContent" align="center"><?php echo 'STANDARD';} ?> </td>
Considering COWOA still uses old code it would be up to developers to merge COWOA into a 1.5.4 customers.php file
I am sorry that I can't be of further help but I think that old code is secondary to the latest code used.
Frank