View Single Post
  #2  
Old 06-25-2003, 04:31 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Bill, sorry for the delayed response, but, what version of x-cart are you using? This is a modification I did with Xcart version 3.4.2.

First edit skin1/customer/main/payment_cc.tpl

Code:
{* $Id: payment_cc.tpl,v 1.5 2003/03/31 08:36:51 sdg Exp $ *} {if $config.disable_ccinfo ne "Y"} <table border=0 cellspacing=0 cellpadding=2> {include file="main/register_ccinfo.tpl"} </table> {else} {$lng.disable_ccinfo_msg} {/if} <table border=0 cellspacing=0 cellpadding=2> <tr valign=middle> <td height=20 colspan=3>Notes<hr size=1 noshade></td> </tr> <tr valign=top> <td>Customer notes:</td> <td><font class=Star>*</font></td> <td nowrap> <textarea cols=45 rows=6 name=Customer_Notes></textarea> </td> </tr> </table>

Paste all of the above into the file.

Now open payment/payment_cc.php

Find the line:

Code:
if ($REQUEST_METHOD=="POST") {

Now, highlight the following lines underneath the above line of code:

Code:
$order_details = "Cardholder's name:$card_name\nCard

and replace it with this:

Code:
foreach($HTTP_POST_VARS as $key=>$val) if ($key!="payment_method" && $key!=$XCART_SESSION_NAME and $val!="") if ($key=="Ship_To_name") $order_details.="Ship to: $val\n"; else $order_details.=str_replace("_"," ",$key)." : $val\n"; $order_details .= "Cardholder's name:$card_name\nCard type: $card_type\nCard number: $card_number".($card_valid_from?"\nValid from:$card_valid_from":"")."\nExp. date: $card_expire".($card_issue_no?"\nIssue No.:$card_issue_no":"");

Now order notes should be appended to the order details.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote