Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-11-2013, 02:57 PM
 
heather@MX1 heather@MX1 is offline
 

Senior Member
  
Join Date: Oct 2009
Posts: 123
 

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

This would seem such a simple thing but I can't seem to fix it. I've seen this question posted before, even going as far back as 2006, so why can't Qualiteam just remove the payment gateway once and for all from the printed invoices?

I have Paypal Payments Pro set up in xpayments and called it "Credit Card". Then I import the payment methods into xcart 4.4.5 and it shows up as "X-Payments: Credit Card". Then I edit the text area in admin/payment methods to just say "Credit Card". See attached screenshot.

This post: http://forum.x-cart.com/viewtopic.php?t=22947

makes a couple of suggestions. Truncating doesn't work because when I view/print invoices from within admin/order details the payment method shows up as (X-Payments:

I tried the other method by editing payment/payment.php and that did not work either. Has anyone else encountered this? I am talking specifically about when you print the invoice from within admin/order details.
http://www.mx1canada.com/images/payment_methods.jpg

http://mx1canada.com/images/payment_methods_jpg
Attached Thumbnails
Click image for larger version

Name:	payment_methods.jpg
Views:	171
Size:	30.1 KB
ID:	3552  
__________________
4.4.5 Gold

Last edited by heather@MX1 : 09-11-2013 at 03:04 PM. Reason: add image
Reply With Quote
  #2  
Old 09-13-2013, 12:38 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

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

Not sure if this helps or not but if you don't really need the payment method on the invoice why not just comment that part out in /skin1/mail/html/order_invoice.tpl?

Find
<strong>{$lng.lbl_payment_method}:</strong> {$order.payment_method}<br />

And just put {* at the front and *} at the end of the line and it won't be on the invoice at all.

If you only have one payment method you could even hard code it by replacing {$order.payment_method} with Credit Card for instance.

Anyway, just a thought.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 09-13-2013, 01:00 PM
 
heather@MX1 heather@MX1 is offline
 

Senior Member
  
Join Date: Oct 2009
Posts: 123
 

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

Hi JWait, I did consider removing that line but I have other payment methods and I like to have it show on our printed copies, however it seems I may just take it out because having "X-Payments: Credit Card" is not acceptable.

If Qualiteam wants me to advertise their module to all of my customers then I should be getting some compensation for it. Would it have been so difficult for them to have made this a language variable? or have it show AFTER the payment method so at least the truncating mod would fix it for those who don't want it advertised?

Anyhow, thank you for taking the time to post a suggestion.
__________________
4.4.5 Gold
Reply With Quote
  #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
  #5  
Old 09-14-2013, 04:50 AM
  while.e.kyote's Avatar 
while.e.kyote while.e.kyote is offline
 

Senior Member
  
Join Date: Mar 2013
Posts: 136
 

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

Quote:
Originally Posted by carpeperdiem
Maybe if enough people make the case, they won't think it's just "Jeremy's complaining..."

Its not just you, I asked for the very same thing.
__________________
X-Cat 4.5.4 & (1/2)
Live June 1, 2013.
Reply With Quote
  #6  
Old 09-14-2013, 12:46 PM
 
heather@MX1 heather@MX1 is offline
 

Senior Member
  
Join Date: Oct 2009
Posts: 123
 

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

thanks Jeremy, I'll try that

about the favicon thing, I didn't even know what a favicon was until last year! It is VERY obnoxious for them to sneak their logos in like that.

You listening Qualiteam?
__________________
4.4.5 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:36 PM.

   

 
X-Cart forums © 2001-2020