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

How To Modify The Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-26-2005, 05:15 PM
 
Bradc Bradc is offline
 

Member
  
Join Date: Jan 2005
Location: Canada
Posts: 18
 

Default 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
__________________
X-Cart 4.0.11 Live
OS: Linux
php-4.3.10
Reply With Quote
  #2  
Old 02-10-2005, 06:48 PM
 
PremiumPonyParts PremiumPonyParts is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 114
 

Default

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

Have fun
__________________
Version 4.0.8
Reply With Quote
  #3  
Old 02-11-2005, 06:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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

this has been raised a few times
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 02-11-2005, 07:18 AM
 
Bradc Bradc is offline
 

Member
  
Join Date: Jan 2005
Location: Canada
Posts: 18
 

Default

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?



Thanks
__________________
X-Cart 4.0.11 Live
OS: Linux
php-4.3.10
Reply With Quote
  #5  
Old 08-30-2005, 10:11 PM
 
markjkaufman markjkaufman is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 8
 

Default

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.
__________________
Mark J Kaufman
X-Cart Gold 4.0.13
Linux, Apache, PHP 4.4.0, Perl 5.006001
LisaKaufmanDesigns.com
Reply With Quote
  #6  
Old 09-03-2005, 10:44 PM
 
markjkaufman markjkaufman is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 8
 

Default

See this post for the solution!!!

http://forum.x-cart.com/viewtopic.php?p=104968#104968
__________________
Mark J Kaufman
X-Cart Gold 4.0.13
Linux, Apache, PHP 4.4.0, Perl 5.006001
LisaKaufmanDesigns.com
Reply With Quote
  #7  
Old 09-13-2005, 08:15 AM
 
gbanse gbanse is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Vermont, USA
Posts: 53
 

Default

Has anyone succeeded with the original concept of replacing the first three groups of credit card numbers with Xs (XXXX-XXXX-XXXX-4367)?
__________________
Gregg
XC v4.0.12 (13 and 17) Gold
Reply With Quote
  #8  
Old 02-13-2009, 01:14 PM
 
rawle@websonet.com rawle@websonet.com is offline
 

Member
  
Join Date: Jun 2007
Posts: 27
 

Default 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?
__________________
xcart 4.7.12 [Linux]
(fancy cat)
(magnifier)
(special offers)
(AOM)
MariaDB 10-3-17
apache 2.4.37 (CentOS)
X-Payments 2.2
Reply With Quote
  #9  
Old 06-26-2009, 03:32 PM
 
bmjnine bmjnine is offline
 

Member
  
Join Date: Nov 2008
Posts: 11
 

Default Re: How To Modify The Invoice

Try this: http://forum.x-cart.com/showthread.php?t=16347
__________________
x-cart gold version 4.1.11
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 03:46 AM.

   

 
X-Cart forums © 2001-2020