View Single Post
  #4  
Old 09-13-2013, 11:29 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How to remove Payment Method: X-Payments...from invoices in 4.4.5

I agree -- this is an obnoxious "feature" that X-Cart engineering put in -- probably the same engineer who decided to put the xcart favicon into every install.

You CAN work around this... use the smarty replace function, like this:

file:
<skin>/mail/html/order_invoice.tpl

FIND:
Code:
{$order.payment_method}

REPLACE WITH:
Code:
{$order.payment_method|replace:"(X-Payments: Credit Card)":"Credit Card"}

(and Credit Card is whatever text you want to replace)

WHAT IT REALLY SHOULD BE:
Code:
{$order.payment_method|replace:"(X-Payments: Credit Card)":"$CreditCardType $last4digits"}

But X-Payments is unwilling to send the last 4 and card type back to xcart unencrypted. PCI regs permit it. I've been bitching about this forever.

Maybe if enough people make the case, they won't think it's just "Jeremy's complaining..."
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote