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
  #1  
Old 03-24-2004, 09:49 AM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default Customer notes in email

How do I get customer notes from the order to show up in emails?

Thanks,
Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
  #2  
Old 03-29-2004, 02:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

In skin1/mail/order_data.tpl you can try to use the following:
Code:
{$order.Customer_Notes}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-13-2004, 07:54 AM
 
Risky Risky is offline
 

Member
  
Join Date: Jan 2004
Posts: 26
 

Default

Boomer ... I have the same requirement and tried your suggestion, but it didn't seem to work. Here's my full code:

Code:
{if $order.Customer_Notes} Order Notes: ------------- {$order.Customer_Notes} {/if}

I feel damn stupid asking this, because this should be simple enough.

Can you see anything wrong? Is the field name definitely correct? Is the field name case sensitive (though I also tried with all lower case, with no better result)?

Very grateful!
__________________
Risky
V3.5.3
With Options-based inventory tracking mod, by X-cart
Reply With Quote
  #4  
Old 04-13-2004, 08:04 AM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

It didn't work for me either. I don't see why this would not come in email by default anyway.

Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
  #5  
Old 04-13-2004, 08:37 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Have you tried {$Customer_Notes} instead of {$order.Customer_Notes} ?

If that doesn't work somewhere in the php the value needs to be set, maybe in include/func.php, func_order_data();

let me know.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #6  
Old 04-13-2004, 10:42 AM
 
Risky Risky is offline
 

Member
  
Join Date: Jan 2004
Posts: 26
 

Default

I have really tried on this one .. $Customer_Notes didn't work, so I went looking into include/func.php.

This is the first time ever that I have been in to X-cart by other than the admin area ... the only relevant reference I could find was to "$order["notes"]", so I tried "$order.notes" .. but still without any success.

I tried looking closely in func.php, but couldn't see anything else of possible relevance, and it was far too late to look elsewhere (1:40am now).

If you have any more suggestions, I'd be real grateful. I may look again tomorrow.

Thanks again
__________________
Risky
V3.5.3
With Options-based inventory tracking mod, by X-cart
Reply With Quote
  #7  
Old 04-13-2004, 12:15 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Looking over include/payment_method.php I see:
Code:
$userinfo = array_merge($userinfo,$HTTP_POST_VARS);

So this may work:

{$userinfo.Customer_Notes}

If not try adding

Code:
$mail_smarty->assign("Customer_Notes",$HTTP_POST_VARS["Customer_Notes"]);

To the payment_method.php file. and try $Customer_Notes again in the mail template.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #8  
Old 04-15-2004, 12:42 AM
 
Risky Risky is offline
 

Member
  
Join Date: Jan 2004
Posts: 26
 

Default

Boomer .. Sorry, no luck with either of these two suggestions.

{$userinfo.Customer_Notes} didn't produce anything.

The second suggestion produced an error on running:

Quote:
Fatal error: Call to a member function on a non-object in /home/gowest/public_html/store/include/payment_method.php on line 39

Line 39 was the new code I added. The first few lines of payment_method.php looked like this (with new line inserted just after the opening comment lines):

Code:
# # $Id: payment_method.php,v 1.27 2003/10/13 06:36:36 svowl Exp $ # # CC processing payment module # $mail_smarty->assign("Customer_Notes",$HTTP_POST_VARS["Customer_Notes"]); include_once "../top.inc.php"; include_once $xcart_dir.DIR_CUSTOMER."/auth.php"; x_session_register("cart"); x_session_register("order_secureid"); x_session_register("ship_to"); x_session_register("extended_userinfo"); if (@$HTTP_POST_VARS["action"] == "place_order" and !empty($cart)) { # # Check if products in cart is in stock yet #

In case there's any confusion here, I am trying to get the contents of Customer Notes field included in the Invoice displayed to customer at the end of his checkout, plus also on the emailed order confirmation message sent to him.

The order notification sent to admin already shows the Customer Notes under the heading "Credit Card Information" or something similar.

I don't want to bog you down in something as relatively minor as what I am trying to do, so unless you can see something wrong in what I have done above, or have another quick suggestion to try, I'll probably drop this for now and include the requirement in a list of mods I'll ask the x-cart people to quote me on later.

If I was actually a programmer or knew more about what I was doing, I would perservere. I just figured this would be relatively simple, but looks like it's not.

Cheers and thanks,
__________________
Risky
V3.5.3
With Options-based inventory tracking mod, by X-cart
Reply With Quote
  #9  
Old 04-15-2004, 07:03 AM
  caucus's Avatar 
caucus caucus is offline
 

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

Default

Hello

I agree with you X-cart has this stupid idea that the sales department or the customre is not supposed to see the notes. It appears the customer notes also holds the CC info.

X-cart should fix this problem. However, in the mean time I had X-cart do a mod for the site and it does work. I use 2CO at checkout and the CC info is not in the comments.

Instead of having a sepearted field for the CC info they are using the comments for this information.

In my view there should be customer notes and then have a field for CC info.

They took a shortcut that is not satisfactory!
__________________
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
  #10  
Old 04-23-2004, 01:17 PM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

It looks as if this got worked on in the latest patch 3.5.7. I hope it works.

Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
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 09:53 PM.

   

 
X-Cart forums © 2001-2020