X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help editing payment method name on invoice (https://forum.x-cart.com/showthread.php?t=9291)

inksticks 09-09-2004 11:40 AM

Help editing payment method name on invoice
 
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.

inksticks 09-13-2004 12:56 PM

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

youngvet1 12-30-2006 09:05 AM

Re: Help editing payment method name on invoice
 
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?


All times are GMT -8. The time now is 07:16 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.