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)
-   -   How To Modify The Invoice (https://forum.x-cart.com/showthread.php?t=11735)

Bradc 01-26-2005 05:15 PM

How To Modify The Invoice
 
Hi All,

Has anyone modified the invoice so that under Б─°Payment methodБ─² you could have something like Б─°Paid by Visa xxx-xxxx-xxxx-1234Б─² ?

Thanks

PremiumPonyParts 02-10-2005 06:48 PM

Not exactly sure, but good place to start looking would be under
skindirectory/mail/html/order_invoice.tpl

Have fun

shan 02-11-2005 06:37 AM

credit card info is store din such a way that its awkward to seperate out.

this has been raised a few times

Bradc 02-11-2005 07:18 AM

maybe grabbing the last 4 digits of the CC before it gets storedin the db would be enough ... not sure where this happens in the code :? .

It'd be a pretty simple snipet of code to grab the last for digits and store them in a table. Then whenever you needed to print or display the invoice you could grab that outta the DB.

just a thought:

Code:

//this would be the variable from the form
$cc_number = "1111222233334444";
//this creates the masked number
$masked_cc_number =  "xxxx-xxxx-xxxx-".$cc_number[12].$cc_number[13].$cc_number[14].$cc_number[15];


Now you have a variable $masked_cc_number that could be stored in the db somewhere that is related to this order.

I haven't figured out what table holds the invoice data or how x-cart stores its data into the db yet but this should work.

any thoughts on where i might find the code that grabs the credit card number, and where it the code is that stores it in the db?

:D

Thanks

markjkaufman 08-30-2005 10:11 PM

Okay, posting to renew this topic in the hopes of getting a pointer for a very similar request!

I want to modify the invoice and secure order e-mail, both of which ALREADY DISPLAY THE FULL CREDIT CARD NUMBER. I want to insert spaces or hyphens to separate the displayed/printed CC number into four groups of four digits to make it easier to read the number for offline processing.

E.g. 4111-1111-1111-1111, not 4111111111111111!

Thinking naively, how hard can this be?! There must be one line SOMEWHERE that actually puts the stored CC number into the forms, right? Unless it's in an inaccessible PHP library function, there's gotta be a way to get at this string in between when it's fetched and when it's written to the forms. Right?

I'll be checking back here, eagerly awaiting some clever wisdom! Thanks.

markjkaufman 09-03-2005 10:44 PM

See this post for the solution!!!

http://forum.x-cart.com/viewtopic.php?p=104968#104968

gbanse 09-13-2005 08:15 AM

Has anyone succeeded with the original concept of replacing the first three groups of credit card numbers with Xs (XXXX-XXXX-XXXX-4367)?

rawle@websonet.com 02-13-2009 01:14 PM

Re: How To Modify The Invoice
 
What about x-cart ver 4.2, unless i missed an option my invoices have the full credit card numbers on them. I would like the invoice to specify the last 4 numbers only. i.e. xxxx-xxxx-xxxx-1234. How can this be done?

bmjnine 06-26-2009 03:32 PM

Re: How To Modify The Invoice
 
Try this: http://forum.x-cart.com/showthread.php?t=16347


All times are GMT -8. The time now is 09:28 PM.

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