Hello, I just recently purchased CS-Cart and for my business it is very important for the main order list to show the Shipping carrier so our customer service can see if an order is Overnight or 2 day shipping right away. Is there any way to modify the template for this to show the “Shipping Method”?? Anyone done this yet? Thank you.
I was actually able to figure this out, if anyone is interested in the fix for this, please let me know.
Hello,
Yes, I am interested. Please share.
Sorry I did not see your reply for some reason, here are the below changes you will need to make:
Open the “controllers/admin/orders.php” file and find the following code:
```php
elseif ($mode == ‘manage’) {
list($orders, $search, $totals) = fn_get_orders($params, Registry::get(‘settings.Appearance.admin_orders_per_page’), true);
```
add this code below:
```php
if (!empty($orders)){
foreach ($orders as $k => $v) {
$order_info = fn_get_order_info($v[‘order_id’]);
$o_id = $v[‘order_id’];
if (!empty($order_info)){
foreach ($order_info as $a => $b){
if ($a==‘shipping’){
foreach ($b as $ship => $shipping){
$ship_order[] = array (
‘o_id’ => $o_id,
‘shipping’ => $shipping[‘shipping’],
‘carrier’ => (isset($shipping[‘carrier’])? $shipping[‘carrier’] : “No carrier”)
);
}
}
}
}
}
if (isset($ship_order)){
$view->assign(‘ship_order’, $ship_order);
}
}
```
Open the “skins/basic/admin/views/orders/manage.tpl” file.
Find the following code:
```php
#{$o.order_id}
```
and add the following code below, you can change it to appear how you like:
```php
{foreach from=$ship_order item="ship"}
{if $ship.o_id eq $o.order_id}
{if $ship.shipping}
{$lang.shipping}:{$ship.shipping}
{/if}
{if $ship.carrier }
{$lang.carrier}:{$ship.carrier}
{/if}
{/if}
{/foreach}
```
Hi Lon,
Would you happen to know how to adjust your code please to enable me to be able to list orders by the ‘User Group’ of the customers. Or better still be able to search for all orders placed under a certain User Group in the ‘Advanced Search’ tab.
Many thanks
Mike