Originally Posted by
supersnow
So I had to go back to super order 2.0 as 3.0 was causing blank product pages on my site. But I am still have the issue of not seeing which customers are COWOA in the customer table in the admin area. I see the column for No Account but underneath there is nothing. I can sort and it works but I cannot see quickly in the overview table which ones are COWOA or not.
Really would love to be able to see which customers are COWOA rather than having to click into each customer record.
Any help would be appreciated!
I think this code never got entered. Here is a quick and dirty solution.
In you Admin/customers.php file around line 1167 look for this code
Code:
<?php } ?>
<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>
Add this right after the above code:
Code:
<?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>
This will put COWOA or STANDARD under the No Account Header.
You may want to also change the variable in the language file from No Account to Account Type. It makes more sense
In your admin/includes/languages/english/extra_definitions/COWOA.php file change the TABLE_HEADING_COWOA to equal Account Type.
JT
Bookmarks