Has anyone gotten this contribution for the CVV2 to work on the MAX 1.7?
http://www.oscommerce.com/community/contributions,99
I have it working in my original store on osCommerce 2.2 Milestone 2. However the problem occurs as to where to put the javascript that they tell you to put in checkout_payment.php
******File edits for catalog/checkout_payment.php******
1.) Around line 104 find this:
// one button is not an array
if (document.checkout_payment.payment[0]) {
document.checkout_payment.payment[buttonSelect].checked=true;
} else {
document.checkout_payment.payment.checked=true;
}
}
function rowOverEffect(object) {
if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}
function rowOutEffect(object) {
if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
Add this right after:
//begin cvv contribution
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location =no,directories=no status=no,menubar=no,scrollbars=yes,resizable=yes, copyhistory=no,width=450,height=450,screenX=150,sc reenY=150,top=150,left=150')
}
//end cvv contribution
I am using the AAbox template. There is no place to put it in the main checkout_payment.php so it put in the aabox template/content/checkout_payment.tpl.php and get the following error:
Parse error: parse error, unexpected T_STRING, expecting ')'
templates/aabox/content/checkout_payment.tpl.php on line 118
Thank you in advance for your help.





LinkBack URL
About LinkBacks






Bookmarks