Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Customer notes in email

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 04-24-2004, 06:11 AM
 
Risky Risky is offline
 

Member
  
Join Date: Jan 2004
Posts: 26
 

Default

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.
__________________
Risky
V3.5.3
With Options-based inventory tracking mod, by X-cart
Reply With Quote
  #12  
Old 04-24-2004, 07:14 AM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

http://forum.x-cart.com/viewtopic.php?t=9883
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
  #13  
Old 04-24-2004, 11:26 PM
 
Risky Risky is offline
 

Member
  
Join Date: Jan 2004
Posts: 26
 

Default

Beauty, thanks.
__________________
Risky
V3.5.3
With Options-based inventory tracking mod, by X-cart
Reply With Quote
  #14  
Old 04-25-2004, 03:56 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

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?
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #15  
Old 05-11-2004, 07:25 AM
 
Loon Loon is offline
 

Member
  
Join Date: Feb 2004
Location: MN, USA
Posts: 19
 

Default

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
__________________
Linux / Apache 1.3.31
PHP 4.3.3
MySQL 4.0.18
X-Cart 3.5.4 in production Mar 08, 2004
X-Cart 3.5.4 Win2k SP4 for development
Reply With Quote
  #16  
Old 05-11-2004, 09:28 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

Hello Loon

Thanks for the link. I will check it out ASAP!
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #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
  #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
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:29 PM.

   

 
X-Cart forums © 2001-2020