![]() |
Adding shipping option in orders list
Does anyone know how to add a shipping option column to the orders list and highlight them in different colors?
This will make it much easier to see orders that have selected expedited shipping options like next day service Xcart 4.6.0 |
Re: Adding shipping option in orders list
|
Re: Adding shipping option in orders list
Thank you for the reply - this simply adds a color code to the customers name
I need a column with the shipping method name listed - we have many many shipping methods - thanks |
Re: Adding shipping option in orders list
Quote:
I know this is an old thread but here's a patch for 4.7.6. It adds a "shipping" column to the order list with the shipping method per order. We use this to easily see in the order list which orders have expedited shipping. Those orders get priority over ground shipping. skin/common_files/main/orders_list.tpl find Code:
<td width="20%" nowrap="nowrap">{if $search_prefilled.sort_field eq "date"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=date{if $search_prefilled.sort_field eq "date"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_date}</a></td> Replace with: Code:
<td width="15%" nowrap="nowrap">{if $search_prefilled.sort_field eq "date"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=date{if $search_prefilled.sort_field eq "date"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_date}</a></td> Find: Code:
<td nowrap="nowrap"><a href="order.php?orderid={$orders[oid].orderid}">{$orders[oid].date|date_format:$config.Appearance.datetime_format}</a></td> After it, add: Code:
<td nowrap="nowrap">{$orders[oid].shipping|regex_replace:"/\(.*\)|#.*#/":""}</td> |
Re: Adding shipping option in orders list
Many thanks !!
![]() |
Re: Adding shipping option in orders list
We did something similar but just truncated the shipping to a suitable length to help the column from becoming too long:
PHP Code:
|
Re: Adding shipping option in orders list
Thanks for sharing the mod. Just to add my twist to it (for my V4.4.5 cart), I altered the last line of code so that the USPS's <sup> tags are removed from the displayed shipping text. This shortens the text and looks better too.
Code is as follows: Code:
<td nowrap="nowrap">{$orders[oid].shipping|regex_replace:"/\<|\>|sup|\/|\(.*\)|#.*#/":""}</td> |
All times are GMT -8. The time now is 06:52 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.