View Single Post
  #21  
Old 04-05-2011, 04:56 AM
 
migol3 migol3 is offline
 

Member
  
Join Date: Oct 2006
Posts: 25
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

I just added this hack to order_invoice.tpl. It displays the PO number by using regex in the smarty template to remove everything after the first line break in $order.details.

{if $order.payment_method eq "Purchase Order"}{$order.details|regex_replace:"/[\n].*/":""}{/if}
__________________
X-Cart Gold 4.6.3
Reply With Quote