View Single Post
  #1  
Old 12-30-2007, 09:52 PM
 
KaviSkin KaviSkin is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 40
 

Default Card Type on Invoice

We recently upgraded from 4.0.14 to 4.1.9 and have an issue we can't resolve.

We had modified our 4.0.14 code such that invoices would show the payment type and if credit card, the card type. For example:

Payment Method:
Credit Card (VISA)

We did this by changing the following line in payment_cc.php,

$orderids = func_place_order(stripslashes($payment_method)." (".$module_params["module_name"].(get_cc_in_testmode($module_params)?", in test mode":"").")", "I", $order_details );

to this,

$orderids = func_place_order(stripslashes($payment_method)." ("."$card_type".(get_cc_in_testmode($module_params )?", in test mode":"").")", "I", $order_details );

We made the same change in 4.1.9 and while the credit card type is being shown on invoices, it isn't being shown on email notifications. On email notifications, we only see "Credit Card".

What is odd is the tpl files for "order processed" and "order invoice" both call {$order.payment_method}.

Very confused, and any help would be greatly appreciated.

Best,
Robert
__________________
KAVI Skin Solutions, Inc.
http://www.kaviskin.com
X-Cart 4.4.3
Reply With Quote