View Single Post
  #18  
Old 12-15-2004, 02:28 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default

This did not work for me:

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

so I changed it to:

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

Which works but I only get the first word of the customer notes. It is stripping out everything after the first space. I don't understand exactly how this line of code works, I'm trying to work it out from the Smarty site, but if anyone can see the problem, it would be most appreciated.

Thanks

Amy
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote