Jump to content

metaphor_e

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Erin cornell
  1. metaphor_e

    Paymentech problem:None to help ):

    I have been using this paymentech module without any problems for over a year http://www.oscommerce.com/community/contri...arch,paymentech
  2. metaphor_e

    PayPal Express Checkout IPN Payment Module

    I did a hack to get coupons working with this module again. It's not pretty but it works. In includes>modules>payment>paypal_ec.php Find (in 2 places) $su_total = round($order->info['subtotal'] * $currencies->get_value($currency_id), $decimal); Replace $su_total = (round($order->info['subtotal'] * $currencies->get_value($currency_id), $decimal) +round(($order->info['total'] - $order->info['subtotal'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($currency_id), $decimal)); Find x 2 $order_info['PAYPAL_ORDER_TOTAL'] = $su_total + $sh_total + $tx_total + $ha_toatl; //**** Use the sum of all items to avoid decimal rounds mismatch the total. Replace $order_info['PAYPAL_ORDER_TOTAL'] = $su_total + $sh_total + $tx_total; //**** Use the sum of all items to avoid decimal rounds mismatch the total. Find x 2 $order_info['PAYPAL_HANDLING_TOTAL'] = $ha_toatl; Replace $order_info['PAYPAL_HANDLING_TOTAL'] = '';
  3. metaphor_e

    [Contribution] Visitor Web Stats - Support Thread

    I was having the same problems with register globals and gettting the http:// I fixed it by altering the visitors_count.php file as follows: Find if ($referer == '') { $referer = $HTTP_SERVER_VARS['HTTP_REFERER']; } Change to if ($referer == '') { // $referer = $HTTP_SERVER_VARS['HTTP_REFERER']; $referer = $_SERVER['HTTP_REFERER']; } Find $uri = sprintf("%s%s%s","http://",$HTTP_HOST,$REQUEST_URI); Change to //$uri = sprintf("%s%s%s","http://",$HTTP_HOST,$REQUEST_URI); $uri = sprintf("%s%s%s","http://",$_SERVER['HTTP_HOST'],$_SERVER['REQUEST_URI']); Find if ( function_exists('tep_get_ip_address') ) { $b_ip = tep_get_ip_address(); } else { $b_ip = getenv('REMOTE_ADDR'); } Change to if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $test = explode(".",$_SERVER['HTTP_X_FORWARDED_FOR']); if ( ($test[0] == '127') || ($test[0] == '192' && $test[1] == '168') || ($test[0] == '172' && (int)$test[1] > 15 && (int)$test[1] < 32) || ($test[0] == '10') || ($test[0] == '169' && $test[1] == '254') ) { if (isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } else { $ip = $_SERVER['REMOTE_ADDR']; } } else { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } else { $ip = $_SERVER['REMOTE_ADDR']; } } else { if (getenv('HTTP_X_FORWARDED_FOR')) { $test = explode(".",$_SERVER['HTTP_X_FORWARDED_FOR']); if ( ($test[0] == '127') || ($test[0] == '192' && $test[1] == '168') || ($test[0] == '172' && (int)$test[1] > 15 && (int)$test[1] < 32) || ($test[0] == '10') || ($test[0] == '169' && $test[1] == '254') ) { if (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else { $ip = getenv('REMOTE_ADDR'); } } else { $ip = getenv('HTTP_X_FORWARDED_FOR'); } } elseif (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else { $ip = getenv('REMOTE_ADDR'); } } $b_ip = $ip; Also in the visitors.php file Find default: $order = str_replace('AND', 'WHERE', $robot) . $guest_only ." order by "; break; } Change to default: $order = str_replace('AND', 'WHERE', $robot) . $guest_only ." order by "; break; } $listing = $HTTP_GET_VARS['listing'];
×