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,