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.
|