Results 1 to 2 of 2

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

      
  1. #1
    Member nfmg's Avatar
    Join Date
    Oct 2003
    Location
    Montana
    Posts
    49
    Rep Power
    0


    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]

  2. #2
    Member nfmg's Avatar
    Join Date
    Oct 2003
    Location
    Montana
    Posts
    49
    Rep Power
    0


    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

Similar Threads

  1. adding cvv code to credit card module
    By jschafer52 in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 03-08-2006, 04:25 PM
  2. adding conversion tracking code to osc max 1.7
    By pr0ject004 in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 08-24-2005, 04:47 PM
  3. Adding Tracking Code
    By oakhill in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 07-20-2005, 03:50 PM
  4. adding box for cc security code
    By ckiel in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 03-17-2004, 06:41 PM
  5. Newbie needs a hand, what usrname and pwd for admin?!?!?!
    By newbieswede in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 09-12-2003, 10:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •