![]() |
Oziris .. . This is good news if it is in 3.5.7. But, how do you know what's in 3.5.7? It's not even showing on the X-Cart website yet, the latest there being 3.5.6.
Thanks for the news anyway. |
|
Beauty, thanks.
|
Hello Group
I looked at http://forum.x-cart.com/viewtopic.php?t=9883 and did not see anything mentioned about customer notes being sent with the e-mail. There is a mention of orders but not customer notes. Are customer notes being passed in the e-mail? |
If you are still struggling with the 'customer notes' problem, they are stored, encryped, along with the credit card info in the database. Here is a solution that worked to print them in other places -- probably could easily pick this added variable up for the email as well. Hope that helps.
http://forum.x-cart.com/viewtopic.php?t=9400 |
Hello Loon
Thanks for the link. I will check it out ASAP! |
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) |
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 |
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 |
All times are GMT -8. The time now is 10:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.