Quote:
Originally Posted by Keys Care
Hi, Thanks for the post. I am trying to add the "company name" to the summary. Can you explain how you added the items of show a screen shot of the code changes. I am a bit lost of how to do this minor change.
Many of our wholesale customers have different locations but the same buyer at a single billing address.
Bob
|
Hi Bob.
As the topicstarter mentioned earlier, you will need to customize the /common_files/main/orders_list.tpl file.
Here is the basic code change you should make ('-' means to remove the loc, '+' means to add one):
Code:
- <td width="20%" nowrap="nowrap">{if $search_prefilled.sort_field eq "provider"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=provider{if $search_prefilled.sort_field eq "provider"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_provider}</a></td>
- <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>
- <td width="20%" nowrap="nowrap">{if $search_prefilled.sort_field eq "total"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=total{if $search_prefilled.sort_field eq "total"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_total}</a></td>
+ <td width="15%" nowrap="nowrap">{if $search_prefilled.sort_field eq "provider"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=provider{if $search_prefilled.sort_field eq "provider"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_provider}</a></td>
+ <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>
+ <td width="15%" nowrap="nowrap">{if $search_prefilled.sort_field eq "total"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=total{if $search_prefilled.sort_field eq "total"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_total}</a></td>
+ <td width="15%" align="right" nowrap="nowrap">{$lng.lbl_company}</td>
Then add this
Code:
<td nowrap="nowrap" align="right">{$orders[oid].company}</td>
after this
Code:
<td nowrap="nowrap">
<a href="order.php?orderid={$orders[oid].orderid}">{currency value=$orders[oid].total}</a>
</td>
This is just a basic change, you can customize this columns any way you want, make it sortable, and so on.