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!
|