Skip to content

Commit

Permalink
Show zone info for download orders (zencart#6235)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcwilson authored Feb 20, 2024
1 parent 868cdd8 commit 994d01e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions admin/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ function couponpopupWindow(url) {
];
$search = zen_build_keyword_where_clause($keyword_search_fields, trim($keywords), true);
}
$new_fields .= ", o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.orders_status, o.ip_address, o.language_code, o.delivery_state, o.delivery_country ";
$new_fields .= ", o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.orders_status, o.ip_address, o.language_code, o.delivery_state, o.delivery_country, o.customers_state, o.customers_country ";

$order_by = " ORDER BY o.orders_id DESC";
$zco_notifier->notify('NOTIFY_ADMIN_ORDERS_SEARCH_PARMS', $keywords, $search, $search_distinct, $new_fields, $new_table, $order_by);
Expand Down Expand Up @@ -1411,7 +1411,13 @@ function couponpopupWindow(url) {
<td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $orders->fields['customers_id'], 'NONSSL') . '"><i class="fa-solid fa-magnifying-glass"></i></a>&nbsp;' . $orders->fields['customers_name'] . ($orders->fields['customers_company'] !== '' ? '<br>' . $orders->fields['customers_company'] : ''); ?></td>
<?php if ($show_zone_info) { ?>
<td class="dataTableContent text-left">
<?php echo $orders->fields['delivery_state'] . '<br>' . $orders->fields['delivery_country']; ?>
<?php
if (!empty($orders->fields['delivery_country'])) {
echo $orders->fields['delivery_state'] . '<br>' . $orders->fields['delivery_country'];
} else {
echo $orders->fields['customers_state'] . '<br>' . $orders->fields['customers_country'];
}
?>
</td>
<?php } ?>
<td class="dataTableContent text-right" title="<?php echo zen_output_string($product_details, ['"' => '&quot;', "'" => '&#39;', '<br>' => '', '<br />' => '', '<hr>' => "----\n"]); ?>">
Expand Down

0 comments on commit 994d01e

Please sign in to comment.