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

Card Type on Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-08-2011, 04:50 AM
 
FiberGuy FiberGuy is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 88
 

Default Card Type on Invoice

...instead of "Credit Card (payment gateway that the customer doesn't need to know here)"

I know I did this in 4.1.6, but for the life of me can't figure it out in 4.4.3.
__________________
~Michael~
a.k.a. PermaNoob
V.4.4.3 *HELP!*
Apache/Linux OS
EWD Hosting VPS
Reply With Quote
  #2  
Old 06-14-2011, 02:31 AM
 
FiberGuy FiberGuy is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 88
 

Default Re: Card Type on Invoice

Anyone?
__________________
~Michael~
a.k.a. PermaNoob
V.4.4.3 *HELP!*
Apache/Linux OS
EWD Hosting VPS
Reply With Quote
  #3  
Old 12-19-2011, 01:51 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Card Type on Invoice

Ditto.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #4  
Old 12-19-2011, 02:28 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Card Type on Invoice

I can handle this edit for you guys. Just PM me call or email, you can find my contact info here: http://forum.x-cart.com/showthread.php?t=61845

Minfinger I think the other thread you responded to: http://forum.x-cart.com/showthread.php?t=44590&page=2 is on the right track to accomplishing this. The code does indeed look like it would work in the current version. To get it to display on the invoice as FiberGuy suggested would take a little more work but definitely be possible.

I think this mod is good enough to me to be included by default. It doesn't make sense to inform the customer what method they used, what type of card would be much more valuable info.
-Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 12-19-2011, 06:59 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Card Type on Invoice

Search the forum - there is a thread in here which explains how to put CC type and partial number in order details. It is not illegal to do that as the # is cutted off. I think the solution was posted by Alan ( exsecror)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 12-19-2011, 07:12 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Card Type on Invoice

Here's a solution from another thread looks like a 4.1.1x solution so not completely relevant: http://forum.x-cart.com/showpost.php?p=278926&postcount=22

Hope that helps,
-Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 12-21-2011, 05:47 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: Card Type on Invoice

I did it via the replace smarty function

Code:
{$order.payment_method|replace:"(Sage Pay Go - Form protocol)":""}


within mail/html/order_invoice.tpl
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #8  
Old 12-21-2011, 09:11 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Card Type on Invoice

Quote:
Originally Posted by carlisleglass
I did it via the replace smarty function

Code:
{$order.payment_method|replace:"(Sage Pay Go - Form protocol)":""}


within mail/html/order_invoice.tpl

What does that show on your invoices?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #9  
Old 12-21-2011, 10:27 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Card Type on Invoice

Quote:
Originally Posted by cflsystems
Search the forum - there is a thread in here which explains how to put CC type and partial number in order details. It is not illegal to do that as the # is cutted off. I think the solution was posted by Alan ( exsecror)
Steve,

I've been looking I can't find it.

Mike
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #10  
Old 12-23-2011, 06:00 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Card Type on Invoice

I ended up using the following code in the include/func/func.order.php before the "// Insert Into Orders

Code:
if (!empty($userinfo["card_type"])) { $oldnotes = $customer_notes; $customer_notes = "CDT: ".$userinfo["card_type"].". ".$oldnotes; }

I shows up in the Customer Notes as "CDT: MC/VISA/AMEX/DINO" or whatever your abbreviations are setup as in your CC Payment types.

While this is better than not having it at all. I'd really like to have it appear after Payment Method: Credt Card "(MC/VISA/AMEX/DINO)"

I tried using the same code to replace the $payment_method variable, while it did not appear in the email receipt or on the Invoice, it did put it in the order info in Order Management.

I have seen the other thread about placing the card type and the last four of the CC on the invoice, but I'm not keen on storing CC information at all.
http://forum.x-cart.com/showthread.php?p=278926

Anyone have any idea how to get the CC type in the Payment Method area?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:56 AM.

   

 
X-Cart forums © 2001-2020