View Single Post
  #19  
Old 12-15-2004, 05:23 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

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

Default

OK, I'm not sure why this works but it does:

{$order.details|replace:"\n":""|regex_replace:"/^.*Customer notes:/":" "|regex_replace:"/--- Advanced info.*/":""}

From what I can make out it is replacing everything up to the end of "Customer notes:" with nothing (ie removing it) and the same with everything starting "---Advanced info" leaving Just the actual notes. I'm putting this into my invoice template so when the invoice is printed (also used as a picking list) the notes are there.

Hope this helps someone,

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