View Single Post
  #1  
Old 02-11-2008, 07:44 PM
 
carpeperdiem carpeperdiem is offline
 

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

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

I want to include usernames in the order_invoice.tpl

This thread shows how.

Now, I need to exclude the "anonymous" checkouts, which for my store, all start with "customer".

customer-392
customer-1048
customer-21864

etc...

How do I ask smarty to look for the phrase "customer-XYZ" and if it sees a username that begins with "customer" to let me know...

{if $order.login BEGINS WITH 'customer'}
do this
{/if}

Smarty experts?

Thank you in advance.

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