osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Adding Mod by hand. Where does this bit of code go?

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-29-2004, 06:24 PM
nfmg's Avatar
Member
 
Join Date: Oct 2003
Location: Montana
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nfmg
Default Adding Mod by hand. Where does this bit of code go?

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
Hoping someone can help

Tim[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-29-2004, 07:20 PM
nfmg's Avatar
Member
 
Join Date: Oct 2003
Location: Montana
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nfmg
Default Never mind, it goes in the js.php file

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax