Jump to content


Member Since 21 Feb 2006
OFFLINE Last Active Apr 25 2017 19:36

#1537830 USPS module help

Posted by mdtaylorlrim on 06 October 2010 - 00:19

I'm having the same issue and I've made sure the Zip code is in the shipping config in the admin panel, the account has been switched to the production server, I have uninstalled and reinstalled the USPS module and re-added the username and password. STILL NOT WORKING. Does anyone have any other ideas?

Have it print the error message into a file so you can see the exact problem. You will have to change the file path below to match your environment.

       if ($http->Get('/' . $api_dll . '?' . $request)) $body = $http->getBody();
        // print_r("<br>request=$request"); // DEBUG CODE
      } else {
        return false;

      $response = array();
      while (true) {
        if ($start = strpos($body, '<Package ID=')) {
          $body = substr($body, $start);
          $end = strpos($body, '</Package>');
          $response[] = substr($body, 0, $end+10);
          $my_response = substr($body, 0, $end+10); // DEBUG CODE
          //print_r("<br>response=$my_response"); // DEBUG CODE
// ******* error responses ************
$myFile = "/home/yourname/public_html/usps_errors.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $my_response;
fwrite($fh, $stringData);
// *********************************
          $body = substr($body, $end+9);
        } else {
// ******* error responses ************
$myFile = "/home/your_name/public_html/usps_errors.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $body;
fwrite($fh, $stringData);
// *********************************

Find that code in the /includes/modules/shipping/usps.php file and add the code between the // **************
Be sure to change the path and create the empty file with write permissions first. You may have to add the $my_response line or something else. I no longer have the original code to compare it.
I'm sort of lazy that way...

#1536152 UPS Shipping Module

Posted by mdtaylorlrim on 28 September 2010 - 00:49

UPS XML Rates and Services

#1533995 USPS

Posted by mdtaylorlrim on 19 September 2010 - 02:24

Does anyone know how to use the SHIPPING Module for USPS? The existing link provided to get an account no longer functions (http://www.uspsprior...et_regcert.html) so USPS directed me to http://www.usps.com/webtools/
I signed up and got a username and password, entered that in the USPS Shipping method, and when previewing site, got an error, so it won't work. USPS sent me something about using an API for testing. Any help on getting this to work would be appreciated.

Testing is not necessary because you are using it in osCommerce. Email them back and tell them that you are using osC and they will switch your account to the production server and give you the directions to change the server settings in the USPS module.

The only common thing that keeps it from working is users not entering the Shipping Origin Zip Code in the Shipping configuration of the admin section.

#1506230 Store Selected Shipping Info

Posted by mdtaylorlrim on 03 May 2010 - 16:23

I need to store information about which shipping method was selected during the checkout process. I would like it to be a lot like the way that the MVS module does it, but I don't want to install the entire MVS module for this one function. Does anyone know of any such module?

Thanks in advance.

Hmm....it is stored. In the orders_total table. Where else did you want it stored, and would it be counter productive to store it in an additional location?

#1499218 Is SSL required?

Posted by mdtaylorlrim on 04 April 2010 - 13:19

According to the package description the credit card data is POSTed to the merchant website. That means that you will have to have an SSL cert, AND YOU WILL HAVE TO BE PCI COMPLIANT. Look for another module is my opinion.

And by the way, do you not care enough about your customer details to SSL protect them? (Yeah, that's harsh but just to make a point, not trying to be mean.)

#1488122 USAepay module logged me off after confirm order

Posted by mdtaylorlrim on 25 February 2010 - 13:43

sorry for the bad conversions,you said I can get the USAePay payment gateway library and use it in oscommerce?. How I can integrate this code into the oscommerce, is there any way to write extensions like we do for Joomla?

If you go to the USAePay website they have a drop in module designed specifically for osCommerce. (as they do for other shopping carts as well) Download it and follow the directions to install. Just like a contribution, except this contribution is written BY THE PROCESSOR so you would think it should be better.

#1487798 USAepay module logged me off after confirm order

Posted by mdtaylorlrim on 24 February 2010 - 14:15

I am using the one provided by the contribution here.

Personally, I would use the one provided by the payment processor over one from a contribution, unless I had some reason not to. Contributions could have been designed for a previous version of software utilized by USAePay. Any little thing changed by USAePay could result in the module not working, so I always use teh one provided by the processor, if they provide one, and USAePay does.

I use it and it works fine for me. Maybe you should consider getting the one from the USAePay web site and install that and try it.

#1483836 Need UPS shipping module - which is recommended?

Posted by mdtaylorlrim on 11 February 2010 - 14:05

I am having trouble with the UPS XML module. We are running php 5.2.11, and this bit of code is causing issues:

// Incorporate the XML conversion library 
  if (PHP_VERSION >= '5.0.0') { // PHP 5 does not need to use call-time pass by reference
    require_once (DIR_WS_CLASSES . 'xml_5.php');
  } else {
    require_once (DIR_WS_CLASSES . 'xml.php');

This is one of the errors in the module control panel

If I comment it out I get all sorts of issues at checkout, so I am guessing it is necessary? :'( What can I do about this?

Do you have the files \store\includes\classes\xml___.php?