regan Posted November 25, 2006 Posted November 25, 2006 Hi I have just installed a contribution on to my oscommerce so as I can take the 3 digit cvv number. All works accept for this bit( which I think displays the cvv number in the orders section ), I cannot understand where or how to access this piece of information. Then you will need to do the following. (the following info new to this revision) To add the CVV2 code to the DB, use phpmyadmin to do the following query... ALTER TABLE `orders` ADD `cc_cvv2` VARCHAR(4) AFTER `cc_number`; I am using the text editor with my host to do all the changes, I have no idea how to use phpmyadmin. Is it possible to add this line to a file and if so where is it. Many thanks for any help Regan Below is full instructions used My wife needed CVV code for her store's site (www.wvroomtogrow.com), but her CC processor required the CVV code to process payment, thus the necessity. So, I added error checking for the CVV2 code Files included (2) to replace: cc.php - replaces catalog/includes/modules/payment/cc.php This was based on the originally CVV2 modded cc.php cc_validation.php -replaces catalog/includes/classes/cc_validation.php - this does the error checking this mod was designed for Then you will need to do the following. (the following info new to this revision) To add the CVV2 code to the DB, use phpmyadmin to do the following query... ALTER TABLE `orders` ADD `cc_cvv2` VARCHAR(4) AFTER `cc_number`; Next, for the display of the CVV code... I actually added that to the orders.php file under admin (i.e. admin/orders.php). Here's what you need to add. Go down about line 196 (look for this block) <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td> <td class="main"><?php echo $order->info['cc_number']; ?></td> </tr> add this block after it... <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_CVV2; ?></td> <td class="main"><?php echo $order->info['cc_cvv2']; ?></td> </tr> save the file. Next, go to the file admin/includes/languages/english/orders.php and add this line (you can add it where the CC stuff is, or at the end ) define('ENTRY_CREDIT_CARD_CVV2', 'CVV2:'); and then save the file. I think that will do it. Pull up an order and see if the code displays. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.