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)
-   -   Card Type on Invoice (https://forum.x-cart.com/showthread.php?t=59689)

FiberGuy 06-08-2011 04:50 AM

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.

FiberGuy 06-14-2011 02:31 AM

Re: Card Type on Invoice
 
Anyone?

minfinger 12-19-2011 01:51 PM

Re: Card Type on Invoice
 
Ditto.

totaltec 12-19-2011 02:28 PM

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

cflsystems 12-19-2011 06:59 PM

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)

totaltec 12-19-2011 07:12 PM

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

carlisleglass 12-21-2011 05:47 AM

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

minfinger 12-21-2011 09:11 AM

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?

minfinger 12-21-2011 10:27 AM

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

minfinger 12-23-2011 06:00 AM

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?


All times are GMT -8. The time now is 11:26 AM.

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