View Single Post
  #17  
Old 05-26-2004, 08:46 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default Customer Notes in Export

HI all, wanted to offer a little help - since X-Cart selfishly lumps all of the CC info and customer notes together, you have to extract them one by one if you JUST want one piece of info.

Here is the syntax for a tag that just pulls the customer notes, not the cc info, into my export file - - hope it sheds some light.

{$orders[oid].details|replace:"\n":" "|regex_replace:"/^.*Customer notes: (\w+).*$/":"\\1"}

OR, if you just want to pull the expiration date of the card for example:

{$orders[oid].details|replace:"\n":" "|regex_replace:"/^.*Exp. date: (\d+).*$/":"\\1"}

Happy hunting :O)
Reply With Quote