| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help editing payment method name on invoice | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm trying edit the payment method name on the in /mail/html/order_invoice.tpl. Most payment methods are listed fine, for example:
Payment method: Purchase Order But I'm using Authorize.net as my credit card processor and when using this payment method the order invoices say: Payment method: Credit Card (AuthorizeNet: AIM) I want to remove the (AuthorizeNet: AIM) but can't figure out how to do it. I would like to remove it from the order confirmation screen too at the end of the order process. Maybe fixing one will fix the other. Could somebody please point me in the right direction. |
|||||||
#2
|
|||||||
|
|||||||
![]() I figured out a good solution. Here it is:
In /mail/html/order_invoice.tpl change the following Code:
to Code:
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. |
|||||||
#3
|
|||||||
|
|||||||
![]() For some reason when i try to use
{$order.payment_method|truncate:18:""} I get a smary error. But I can use truncate like {$order.payment_method|truncate:18} but then i get a ... afte the word credit card anyone know why i am getting the error?
__________________
x-cart version 4.0.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|