View Single Post
  #17  
Old 08-06-2009, 10:34 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Last Four of Credit Card in Invoice Emails

Yeah, I forgot about the goofy way the credit card number storage is done in 4.1. The spot you modified in payment_cc.php is for storing the cc number into the customer table for manual credit card processing. There is similar code in payment_ccend.php for storing the cc number into the customer table for gateway transactions. You should modify both.

The saving of the cc info into the orders table is the goofy part. This code in payment_cc.php is what does that:
PHP Code:
$_order_details_rval = array();
foreach (
func_order_details_fields() as $_details_field => $_field_label) {
    if (isset(
$GLOBALS[$_details_field])) {
        
$_order_details_rval[] = $_field_label.": ".stripslashes($GLOBALS[$_details_field]);
    }

It builds the order_details column for the orders table using the fields defined in func_order_details_fields. It would probably be best to modify $card_number to what you want stored in the orders table before this code and restore it afterwards to avoid problems elsewhere.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote