View Single Post
  #8  
Old 01-14-2008, 05:40 PM
 
sk8conz sk8conz is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 31
 

Default Re: Displaying Purchase Number on Invoice

Came across this (old) thread as I also wanted to display the purchase order number in the email message.

The method given embeds php code which means it displays online but not in the email message as the php code output isn't captured.

The following code is all in smarty and works for both onscreen and email

Code:
{if $order.payment_method eq "Purchase Order" and $order.details ne ""} {foreach from="\n"|explode:$order.details item=i name=foo} {assign var=pordstuff value = $i} {if $smarty.foreach.foo.iteration eq 1} <b> {$pordstuff}</b><br /> {/if} {/foreach} {/if}
__________________
4.3.1
rounded white template
one page checkout
Reply With Quote