View Single Post
  #3  
Old 02-11-2008, 08:31 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Smarty help please, "if a string begins with xyz..."?

Bill,

That's just brilliant! Thank you.

If anyone's interested...

file: skin1/mail/html/order_invoice.tpl

FIND:
Code:
{foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'S'} <tr> <td><b>{$v.title}:</b></td> <td>{$v.value}</td> </tr> {/if} {/foreach}
AFTER, insert:
Code:
{if $order.login|strpos:'customer-'===0} {else} <tr> <td><strong>Username:</strong></td><td>{$order.login}</td> </tr> {/if}

Replace 'customer' with whatever you've named your anonymous customers... in config.php

$anonymous_username_prefix="customer";

Another very nice addition to the customer invoice.

Thanks Bill!

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote