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

Help editing payment method name on invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-09-2004, 11:40 AM
 
inksticks inksticks is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 34
 

Default 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.
__________________
X-Cart 4.0.5
http://www.inksticks.com/
Reply With Quote
  #2  
Old 09-13-2004, 12:56 PM
 
inksticks inksticks is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 34
 

Default 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.
__________________
X-Cart 4.0.5
http://www.inksticks.com/
Reply With Quote
  #3  
Old 12-30-2006, 09:05 AM
 
youngvet1 youngvet1 is offline
 

eXpert
  
Join Date: Aug 2005
Posts: 245
 

Default 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?
__________________
x-cart version 4.0.14
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 10:59 AM.

   

 
X-Cart forums © 2001-2020