Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

daver6

Archived
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    David Routzon

daver6's Achievements

  1. OK, now I've got that working (added 000 to MC edit). However, now in production mode, all credit cards are rejected. It appears as if the amount is going through without a decimal place. Therefore amounts come through as 2195, not 21.95. I looked at the viaklix.php file and this should work, since ssl_amount is what ViaKlix is looking for. I'm assuming that the 2, is number of decimal places. tep_draw_hidden_field('ssl_amount', number_format($order->info['total'] * $currencies->get_value('USD'), 2, '','')) . tep_draw_hidden_field('ssl_salestax', number_format($order->info['tax'] * $currencies->get_value('USD'), 2, '','')) . Any help would be appreciated. Does anyone read these forums? I've never had an answer to any input or questions.
  2. I've got the module working fine with one minor exception. The CC number that ViaKlix requires for testing 50003000xxxxxxxx, is seen as an error by OSC. How did you get around this? The 4111111111111111 that is used for testing in the OSC system of course fails with ViaKlix. Thanks for the module! I've added a Division category, along with PIN and User ID, since the company that I'm building the site for needs it. Any thoughts would be appreciated. Dave
  3. I found the problem. I was using a filename called logintest.php, which was not in the filenames.php list. I changed the name to login.php and it now works fine. Learned a little more about osCommerce as well.
  4. I need a signin that only recognizes the "master password". This mod sure looks like what I need. However, I've been trying unsuccessfully to get the 2.2 version working for several days. So far, when I use my original password that's in the db, it's still recognized and I get in (even though I removed the customers_password entry from the db access in prior lines - tep_db_query). However, when I use the master password "test1", I'm sent to the error page, which is normal operation, not the master password. Here's my current code: // Check if email exists $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); if (!tep_db_num_rows($check_customer_query)) { $error = true; } else { $check_customer = tep_db_fetch_array($check_customer_query); // Check that password is good 11/24/04 $passwordgood = tep_validate_password($password, $check_customer['customers_password']); if ($password == "test1" || $password == "test2") { $passwordgood = 1; } else { $passwordgood = $passwordgood; } if (!$passwordgood) { $HTTP_GET_VARS['login'] = 'fail'; } else { if (SESSION_RECREATE == 'True') { tep_session_recreate(); } I've tried several variations, such as $passwordgood = true; or $passwordgood = !$passwordgood; or if (!$passwordgood) {$error = true;} etc., etc. all with no luck. I've also cleared the cache each time just in case. What am I missing? Any help would sure be appreciated!
×
×
  • Create New...