This is a discussion on Adding Mod by hand. Where does this bit of code go? within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; Hi, I am trying to add the CCCVV_ISSUE_START Selectable with card blacklist contrib. I *think* I've figured out how to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi, I am trying to add the CCCVV_ISSUE_START Selectable with card blacklist contrib. I *think* I've figured out how to mesh all the other parts with OSC-MAX with BTS1.2a, but the bit of code referenced herein doesn't exist at all in max and I can't figure out the PHP to tell where to put the new code. I did look in the .tpl.php version of the file checkout_payment. Code: in catalog/checkout_payment.php
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 BMC 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,screenY=150,top=150,left=150')
}
//end BMC cvv contribution
Tim[/url] |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| Ahh, typo or semething in the readme. It goes in checkout_payment.js.php, not checkout_payment.php I shoulda realized that the code located at line 104 was Javascript, duhh. The readme for cc_cvv+encryption v1.7 otherwise known as CCCVV_ISSUE_START Selectable with card blacklist is not up to date for OSC MAX, or plain ol' OSC either, I don't think. But I got it all thrashed together and it seems to work. Whew! Took me freakin 4.5 hours to get it all installed. There were a lot of bits and pieces to add to the MAX files. I hope the next version of OSC has an easier way to install contribs! Tim |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding cvv code to credit card module | jschafer52 | osCMax v2 Customization/Mods | 3 | 03-08-2006 04:25 PM |
| adding conversion tracking code to osc max 1.7 | pr0ject004 | osCMax v1.7 Discussion | 3 | 08-24-2005 04:47 PM |
| Adding Tracking Code | oakhill | osCMax v2 Customization/Mods | 2 | 07-20-2005 03:50 PM |
| adding box for cc security code | ckiel | osCMax v1.7 Installation | 3 | 03-17-2004 06:41 PM |
| Newbie needs a hand, what usrname and pwd for admin?!?!?! | newbieswede | osCMax v1.7 Discussion | 2 | 09-12-2003 10:53 PM |