Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

nrlatsha

Members
  • Posts

    486
  • Joined

  • Last visited

Everything posted by nrlatsha

  1. Under My Store->Config->product listing, you can set where those buttons are displayed, (1-top, 2-bottom, 3-both), I have it set to 3, for both top and bottom.
  2. Flyer5 - I didn't test it, but give this a shot: catalog/includes/modules/ezier_new_fields.php Look For: // Uncomment the line that you want below, and comment our the default option if you like, description is to the right Under that you'll see the options for the different display setup, replace all the variables of $save2 with $currencies->display_price($save2, '') Give that a shot and let me know if it works...
  3. I can get you a quick fix, methinks. Do you want the % savings shown, the value shown, or both?
  4. Its part of the mod, when you have something that spans over 1 page, the drop down should show up. If you're just getting forward and backward buttons, then you'll need to check the install again.
  5. HangarS - Give this file a try for your maxmind.php: <?php /* $Id: maxmind.php,v 1.5 2004/09/09 22:50:51 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2004 osCommerce Released under the GNU General Public License Noel Latsha, www.nabcomdiamonds.com/www.devosc.com 2004/07/18 - amended for cc.php by Stuart Owens with assistance from Acheron and stevel Tested on osc2.2 (Dec 2002 version) */ // If you have a liscense key, enter it here and uncomment the line //$h["license_key"] = "XXXXXXXXXXXX"; // *************************************DO NOT MODIFY BELOW THIS LINE (Unless you know what you are doing ********************************** $check_country_query = tep_db_query("select countries_iso_code_2 from " . TABLE_COUNTRIES . " where countries_name = '" . $order->billing['country']['title'] . "'"); $check_country = tep_db_fetch_array($check_country_query); $check_state_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_name = '" . $order->billing['state'] . "'"); $check_state = tep_db_fetch_array($check_state_query); require(DIR_WS_MODULES . 'maxmind/CreditCardFraudDetection.php'); $ccfs = new CreditCardFraudDetection; //Modify a few variables to match what MaxMind is expecting. $string = $order->info['cc_number']; $cc = substr($string, 0, 6); $str = $order->customer['email_address']; list ($addy, $domain) = split ('[@]', $str); $phstr = preg_replace( '/[^0123456789]/', '', $order->customer['telephone']); $phone = substr($phstr, 0, 6); //next we set inputs and store them in a hash $h["i"] = $REMOTE_ADDR; // set the client ip address $h["domain"] = $domain; // set the Email domain $h["city"] = $order->billing['city']; // set the billing city $h["region"] = $check_state['zone_code']; // set the billing state $h["postal"] = $order->billing['postcode']; // set the billing zip code $h["country"] = $check_country['countries_iso_code_2']; // set the billing country $h["bin"] = $cc; // set bank identification number $h["custPhone"] = $phone; //set customer phone number // If you want to disable Secure HTTPS or don't have Curl and OpenSSL installed // uncomment the next line // $ccfs->isSecure = 0; //set the time out to be five seconds $ccfs->timeout = 5; //uncomment to turn on debugging // $ccfs->debug = 1; //next we pass the input hash to the server $ccfs->input($h); //then we query the server $ccfs->query(); //then we get the result from the server $h = $ccfs->output(); $outputkeys = array_keys($h); $sql_data_array = array('order_id' => $insert_id, 'score' => $h['score'], 'distance' => $h['distance'], 'country_match' => $h['countryMatch'], 'country_code' => $h['countryCode'], 'free_mail' => $h['freeMail'], 'anonymous_proxy' => $h['anonymousProxy'], 'proxy_score' => $h['proxyScore'], 'spam_score' => $h['spamScore'], 'bin_match' => $h['binMatch'], 'bin_country' => $h['binCountry'], 'bin_name' => $h['binName'], 'err' => $h['err'], 'ip_isp' => $h['ip_isp'], 'ip_org' => $h['ip_org'], 'hi_risk' => $h['highRiskCountry'], 'cust_phone' => $h['custPhoneInBillingLoc'], 'ip_city' => $h['ip_city'], 'ip_region' => $h['ip_region'], 'ip_latitude' => $h['ip_latitude'], 'ip_longitude' => $h['ip_longitude']); tep_db_perform(TABLE_ORDERS_MAXMIND, $sql_data_array); ?> Dont' forget to uncomment this line: // $ccfs->isSecure = 0;
  6. :blush: Guess I have to upload it in order to download it.... V1.53 - Released. Added: Change notes: 09 Sept 2004 08:20:59 V1.52 (1) Added comment to relate scores (2) Updated english.php link. (3) Moved code around (4) Added more info to debug code Basically for maxtest.php, it shows you everything inside the array that posts to the database. Hopefully this will offer more info on where things go wrong, not that things are meant to go wrong. FlyingMonkey - Didn't forget about you. I'm still working it for your side. Also thinking about making it a straight function. But only time will tell.... Oh yeah, youmay ask why the jump from 1.51 to 1.53. Just read my signature... Thats why its 1.53, my bad... :D
  7. I suspect you are the cool person that wrote the MaxMind contribution :D. It was through your forum I learned how important it was to obtain the IP of the buyer. One of your contribution users had a purchase for a U.S. delivery but the IP was from Vietnam. In spite of this, his merchant account fraud protection approved the charge even though it clearly deserves further inquiry. I myself am interested in your contribution. Right now my sales are slow, so I will manually check the IP addresses. If sales pick up, I will seriously consider your fine contribution. I know it is very popular among those that accept credit cards directly and should be given a serious consideration for adding it for those that process many credit card numbers. Word. Your instincts serve you well... I wrote that one out of need and "coolness" Credit cards issuing companies screw the merchants, no if's, and's, or but's about it. Every little thing you can do to try to get a leg up, is worth it. And the service is free from MaxMind. <plug>You can check out all their stuff here: Maxmind Those are the guys that do the geoIP stuff for the user tracking contrib. They have alot of other very cool stuff on their site as well. I don't have too much of a need for some, but its still cool. </plug>
  8. MaxMind is a good contrib! You only send the first 6 of the card number, which correlates to the bank ID.... And theres a heap of other info in there as well. Check it out. Plus the guy who wrote it is awesome! MaxMind
  9. FlyingMonkey - I'll have to take a look at a way for this to work with yours. The problem lies with so many different credit cards and contribs, finding the correct place with yours. Farrukh - And I'm sure they are doing their own fraud screening there... :rolleyes: HangerS - I'll upload 5.12 tonight and see if that helps, this should work without cURL or anything.
  10. HangerS ? Did you upload the new versions of creditcardfrauddetection and httpbase as well? I don't see anything wrong with either file, and made some changes, but not many, mostly moving some code here and there for V5.12 Is the database getting populated with the results? FlyingMonkey - Sorry it took so long to get back to you. When they use auth.net for cc, what shows in admin for you? I mean, does it give any more info as far as cc number, exp, so on and so forth. I may have asked this before, but I'm just looking for somewhere to put the extra info to be sure it gets there for all CC's, not just auth.net and what not. May turn it into an include here soon, or rewrite the entire thing soon...time permitting... TomTomTom - You need to open maxmind.php and look for the part that talks about cURL, you'll need to uncomment the line like this: $ccfs->isSecure = 0; Farrukh - Does 2ckeckout send you a copy of the cc number and exp, stuff like that? You have the other info, I wonder if there can be a manual process for this. That would be the next major release though. I think I got everyone there, didn't I.
  11. I think it basically is steve, I thought you had just compiled Burts info from the previous thread into your contrib, I guess jack didnt realize you had already compiled the code. I know this thread has been around for a while and I implemented burts suggestions long before "log on ala" came out, just figured you used the code from the thread
  12. If somebody throws a list of the contribs that they want consolidated, I can start looking at this, I can't guarantee anything quickly though, probably take a couple of weeks at least. I have some customer websites and custom coding I have to take care of first, but I'll take a look. Donations are appreciated. Here's what I'll need from you guys: Currrent contribs/features you'd like to see (link to them so its easier for me) List of credit cards, number of numbers on each, ccv number of digits, if any.
  13. homewetbr - Go over the install again. This works if you do/don't have a retail price added to your listings.
  14. HangerS - Sorry for the delay, work keeps me busy. Download v1.4 and see if that one works and let me know.
  15. Calvn - I thinkI may have overlooked something that I should have caught, maybe, try this: Remove the code you added to admin/orders.php Look for this: <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> And add the code again after it: // Addition for MaxMind CC check Noel Latsha $check_maxmind_query = tep_db_query("select distance, country_match, country_code, free_mail, anonymous_proxy, score, bin_match, bin_country, err, proxy_score, spam_score, bin_name, cust_phone, ip_city, ip_latitude, ip_longitude, ip_region, ip_isp, ip_org, hi_risk from " . TABLE_ORDERS_MAXMIND . " where order_id = '" . (int)$oID . "'"); $maxmind_query = tep_db_fetch_array($check_maxmind_query); $max_score = round($maxmind_query['score']); switch ($max_score) { case 0: $max_comment = '(Extremely Low risk)'; break; case 1: $max_comment = '(Very Low risk)'; break; case 2: $max_comment = '(Low risk)'; break; case 3: $max_comment = '(Low risk)'; break; case 4: $max_comment = '(Low-Medium risk)'; break; case 5: $max_comment = '(Medium risk)'; break; case 6: $max_comment = '(Medium-high risk)'; break; case 7: $max_comment = '(High risk)'; break; case 8: $max_comment = '(Very High risk)'; break; case 9: $max_comment = '(Extremely High risk)'; break; case 10: $max_comment = '(I can smell the fraud from here)'; break; } ?> </table> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td colspan="7" class="main"><?php echo '<br><b>' . MAXMIND_SCORE . ' <font color="red">' . $maxmind_query['score'] . '</font> ' . $max_comment . '</b>'; ?></td> </tr> <tr class="dataTableRow"> <td width="14%" class="dataTableContent"><?php echo MAXMIND_COUNTRY; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['country_match'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_CODE; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['country_code'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_HI_RISK; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['hi_risk'] . '</b>'; ?></td> </tr> <tr> <td width="14%" class="dataTableContent"><?php echo MAXMIND_BIN_MATCH; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['bin_match'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_BIN_COUNTRY; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['bin_country'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_BIN_NAME; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['bin_name'] . '</b>'; ?></td> </tr> <tr class="dataTableRow"> <td width="14%" class="dataTableContent"><?php echo MAXMIND_IP_ISP; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['ip_isp'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_IP_ISP_ORG; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['ip_org'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_DISTANCE; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['distance'] . '</b>'; ?></td> </tr> <tr> <td width="14%" class="dataTableContent"><?php echo MAXMIND_ANONYMOUS; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['anonymous_proxy'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_PROXY_SCORE; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['proxy_score'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_SPAM; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['spam_score'] . '</b>'; ?></td> </tr> <tr class="dataTableRow"> <td width="14%" class="dataTableContent"><?php echo MAXMIND_FREE_EMAIL; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['free_mail'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_CUST_PHONE; ?></td> <td width="18%" class="dataTableContent"><a href="http://www.whitepages.com/search/Reverse_Phone?phone=<?php echo $order->customer['telephone']; ?>" target="_blank"><?php echo '<b>' . $maxmind_query['cust_phone'] . '</b>'; ?></td> <td width="14%" class="dataTableContent"><?php echo MAXMIND_ERR; ?></td> <td width="18%" class="dataTableContent"><?php echo '<b>' . $maxmind_query['err'] . '</b>'; ?></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> </tr> <tr> <td colspan="4" class="dataTableContent" width="75%" align="center"><?php echo MAXMIND_DETAILS . ' ' . MAXMIND_MAXMIND; ?></td> </tr> <tr class="dataTableRow"> <td width="25%" class="dataTableContent"><?php echo MAXMIND_IP_CITY . '<b>' . $maxmind_query['ip_city'] . '</b>'; ?></td> <td width="25%" class="dataTableContent"><?php echo MAXMIND_IP_REGION . '<b>' . $maxmind_query['ip_region'] . '</b>'; ?></td> <td width="25%" class="dataTableContent"><?php echo MAXMIND_IP_LATITUDE . '<b>' . $maxmind_query['ip_latitude'] . '</b>'; ?></td> <td width="25%" class="dataTableContent"><?php echo MAXMIND_IP_LONGITUDE . '<b>' . $maxmind_query['ip_longitude'] . '</b>'; ?></td> </tr> <tr> <td colspan="4"><?php echo tep_draw_separator(); ?></td> </tr> <?php // End addition for MaxMind Noel Latsha Let me know if that does it... Its not a true fix, but it should get you runnin. for now.
  16. Which version of auth.net are you running and did they change anything recently? I haven't looked at the code changes yet, but I'm about to.
  17. I think I know part of the problem, I moved some code to the top of 1.51 $ccfs->isSecure = 1; I totally missed the ball on that one, it needs to be put back under cust phone, like this: $h["custPhone"] = $phone; //set customer phone number // If you have cURL and an SSL connection available, leave the next line uncommented // Otherwise comment it out by adding "//" in front of it. $ccfs->isSecure = 1; And deleted from the top, my bad :unsure:
  18. Perhaps I can write some sort of function that logs keyboard errors, head falling on keyboard, jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jjjjjjjjjjj, and number of errors created on output. Then a popup would say: The spelling threw me off to, so dictionary support will be provided by Google from now on...
  19. Check step 7 again. The error referrs to a function added at the end of general.php. catalog/includes/functions/general.php ADD (At the very end, before the last ?>): // EZier New Fields 5.0 decimal replacer (Noel Latsha) function osc_ez($number) { $strlen = strlen($number); if (NEW_FIELDS_DECIMAL == 0) { ($strlen = ($strlen - 3)); } // Set the decimal places if (NEW_FIELDS_DECIMAL == 1) { ($strlen = ($strlen - 1)); } // We don't need em here $number = substr($number, 0, $strlen); return $number; }
  20. The new version that was uploaded only added a small comments section after the score, like 3.1 (Low Risk) etc... thought many would like to see it. Also, I forgot to add the default CC file, so I created the default CC folder and put the files everyone uses in there. And somebody asked how to get the free account, but edited their post. Here's a quick link though: http://www.maxmind.com/app/ccv2r_signup Noel
  21. There's only one way to find out, install it and see. Obviously I can't test every platform out there and it helps when members of the community try it out. If it wasn't for Stevel, Stuart and Acheron, I never would have gotten the default module working the way people wanted it to. Or the Auth.net issue also. So Install it, try it and test it. We can go from there.... Noel
  22. This is actually 2 separate questions: Q1: You want it to say EUR on the left instead of the right. A1: Default OSC is to have EUR on the right. You'll have to go into Admin->Localization->Currencies and change the options for it to be set on the left instead of the right. Q2: When I set it to the right, it cuts off part of my currency symbol. A2: This was a problem with this contrib from the start, anybody with a currency symbol on the right got cut off, or part of it. I kinda put this off to the side due to other projects, but I'll just need to update the cutting function. If you set it to 2 decimal places, everything will work fine. So, the workaround until I update the function is to set it to 2 decimal places. Look back for the updated contrib soon. Your probably saying, "yeah, right"... :P Noel
  23. **** NEW VERSION UPLOADED V1.4 **** http://www.oscommerce.com/community/contributions,2115 Screen Shot here: http://www.nabcomdiamonds.com/catalog/imag...MaxMindV1.5.htm Change notes: 20 August 2004 11:20:59 V1.5 (1) Added Stuart's code for split email CC/default module (2) New Instructions in HTML format. (Its perdyier) (3) Auth.net instructions updated (4) Fixed wrong query that got left out somewhere between 1.2 and 1.3 with thanks to Strider (CCGV contributor ) (5) New API's from MaxMind (More features, you can get an account here: www.maxmind.com Tell em Noel sent ya! (6) New feature allows you to do a reverse search of the telephone #, hover over where it says: "Phone Match" to search. In case anybody was wondering, this is still a FREE service from MaxMind. You can upgrade to the pay service for more output. Lemme know of any problems with the install or upgrade. Noel
  24. Actually look for it in the next couple of hours, I've been putting off updating this one due to other projects, but the update is long overdue. I'll start on it now. Noel
×
×
  • Create New...