View Single Post
  #1  
Old 09-28-2005, 10:38 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default Remove Payment Method

Hello Group

I am trying to remove the (2Checkout. Version 2) from the Payment Method. from the html invoice

I would like to keep the Credit/Debit Card but delete the (2Checkout. Version 2).

Payment method:
Credit/Debit Card (2Checkout. Version 2)


I did find a post at 12861
http://forum.x-cart.com/viewtopic.php?t=12861&highlight=

I tried it and it did not work

Any suggestions?

Quote:
I figured out a good solution. Here it is:

In /mail/html/order_invoice.tpl change the following

Code:

{$lng.lbl_payment_method}:
{$order.payment_method}


to

Code:

{$lng.lbl_payment_method}:
{$order.payment_method|truncate:18:""}


You can adjust the truncate value as you wish but I found that 18 was a good value because it allows all payment names up to 18 characters long to be fully shown on the email but when a name like Credit Card (AuthorizeNet: AIM) is used it will only show the words 'Credit Card'

Using the truncate command with :"" after it as above will round to the nearest full word so that you will not get partial words listed on your invoice.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote