Results 1 to 10 of 447

Hybrid View

  1. #1
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: USPS Shipping Module [Support Thread]

    i saw something in this forum about the Unsecure HTTP Endpoint Retirement, and there being a patch for that. I can't find it now, but when I got the USPS notice, I just searched the files for all the places where http://production.shippingapis dot com was mentioned, and changed them to https. Is anything needed besides that? I have the 2017 version of the file, if that makes any difference.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: USPS Shipping Module [Support Thread]

    Quote Originally Posted by HeleneWallis View Post
    i saw something in this forum about the Unsecure HTTP Endpoint Retirement, and there being a patch for that. I can't find it now, but when I got the USPS notice, I just searched the files for all the places where http://production.shippingapis dot com was mentioned, and changed them to https. Is anything needed besides that? I have the 2017 version of the file, if that makes any difference.
    From the updated module's _getQuote method:
    PHP Code:
            // Prepare to make quote-request to USPS servers
            
    switch (MODULE_SHIPPING_USPS_SERVER) {
                
    // -----
                // 20200924 Update: USPS will be phasing out the http:// (non-secure) URL.
                //
                // Secure APIs: https://secure.shippingapis.com/ShippingAPI.dll
                // Non-secure APIs: http://production.shippingapis.com
                //
                
    case 'production':
                    
    $usps_server 'https://secure.shippingapis.com';
                    
    $api_dll 'ShippingAPI.dll';
                    break;
                case 
    'test':
                default:
        
    // 09-7-2014
        //Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
        //Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll
                    
    $usps_server 'https://stg-secure.shippingapis.com';
                    
    $api_dll 'ShippingApi.dll';
                    break;
            } 

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: USPS Shipping Module [Support Thread]

    I've just submitted USPS version 2021-05-05 K11a for the Zen Cart moderators' review and will post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #15: Correcting minimum International dimensions so that International Small F/R Box can be quoted.
    #16: Add notification to enable site-specific customizations for configured shipping methods.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: USPS Shipping Module [Support Thread]

    Quote Originally Posted by lat9 View Post
    I've just submitted USPS version 2021-05-05 K11a for the Zen Cart moderators' review and will post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #15: Correcting minimum International dimensions so that International Small F/R Box can be quoted.
    #16: Add notification to enable site-specific customizations for configured shipping methods.
    Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292

  5. #5
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: USPS Shipping Module [Support Thread]

    Working on a "update" to 1.5.7c from a older version, and I can't get this module working properly.

    All files in store are 1.5.7c, and a clean install of the USPS module was done.

    Currently I am not getting any XML data returned...

    USPS Debug contents:
    Code:
    2021-05-13 11:17:06: USPS build: 2021-05-05 K11a
    
    Server: production
    Quote Request Rate Type: Online
    Quote from main_page: checkout_shipping
    USPS Options (weight, time): --none--
    USPS Domestic Transit Time Calculation Mode: NEW
    Cart Weight: 0.8
    Total Quote Weight: 3.8 Pounds: 3 Ounces: 13
    Maximum: 50 Tare Rates: Small/Medium: 0:3 Large: 10:0
    Handling method: Order Handling fee Domestic: $1.00 Handling fee International: $3.00
    Decimals: 2
    Domestic Length: 8.625 Width: 5.375 Height: 1.625
    International Length: 8.625 Width: 5.375 Height: 1.625
    All Packages are Machinable: False
    Enable USPS First-Class filter for US shipping: True
    Sorts the returned quotes: Price-LowToHigh
    
    ZipOrigination: 48348
    ZipDestination: Postcode: 48353 Country: United States City: Hartland State: Michigan
    Order SubTotal: $25.00
    Order Total: $26.50
    Uninsurable Portion: $0.00
    Insurable Value: $26.50
    
    2021-05-13 11:17:06: Sending request to USPS
    
    2021-05-13 11:17:07: ==================================
    
    SENT TO USPS:
    
    <RateV4Request USERID="XXX"><Revision>2</Revision>
    <Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
    <Package ID="1"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
    </RateV4Request>
    
    
    RESPONSE FROM USPS:
    
    ==================================
    CommErr (should be 0): 0 -
    
    ==================================
    
    USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US
    Domestic Services Selected:
    
    2021-05-13 11:17:07: RESPONSE FROM USPS:
    ==================================
    ============
    
    RAW XML FROM USPS:
    This is happening on both the test and production servers.

    The store files are in a test folder on the site currently so they are not "public", I am wondering if the directory of the store is making a difference? or if it could be something else?

    Any help would be GREATLY appreciated

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: USPS Shipping Module [Support Thread]

    @mikestaps, that log implies that you haven't 'ticked' any of the checkboxes to identify which USPS shipping methods you want to use.

  7. #7
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: USPS Shipping Module [Support Thread]

    Screen shot of selected methods...

    Click image for larger version. 

Name:	2021-05-13 13_52_16-Admin Modules.jpg 
Views:	128 
Size:	26.1 KB 
ID:	19567

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: USPS Shipping Module [Support Thread]

    Quote Originally Posted by mikestaps View Post
    Working on a "update" to 1.5.7c from a older version, and I can't get this module working properly.

    All files in store are 1.5.7c, and a clean install of the USPS module was done.

    Currently I am not getting any XML data returned...

    USPS Debug contents:
    Code:
    2021-05-13 11:17:06: USPS build: 2021-05-05 K11a
    
    Server: production
    Quote Request Rate Type: Online
    Quote from main_page: checkout_shipping
    USPS Options (weight, time): --none--
    USPS Domestic Transit Time Calculation Mode: NEW
    Cart Weight: 0.8
    Total Quote Weight: 3.8 Pounds: 3 Ounces: 13
    Maximum: 50 Tare Rates: Small/Medium: 0:3 Large: 10:0
    Handling method: Order Handling fee Domestic: $1.00 Handling fee International: $3.00
    Decimals: 2
    Domestic Length: 8.625 Width: 5.375 Height: 1.625
    International Length: 8.625 Width: 5.375 Height: 1.625
    All Packages are Machinable: False
    Enable USPS First-Class filter for US shipping: True
    Sorts the returned quotes: Price-LowToHigh
    
    ZipOrigination: 48348
    ZipDestination: Postcode: 48353 Country: United States City: Hartland State: Michigan
    Order SubTotal: $25.00
    Order Total: $26.50
    Uninsurable Portion: $0.00
    Insurable Value: $26.50
    
    2021-05-13 11:17:06: Sending request to USPS
    
    2021-05-13 11:17:07: ==================================
    
    SENT TO USPS:
    
    <RateV4Request USERID="XXX"><Revision>2</Revision>
    <Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
    <Package ID="1"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
    </RateV4Request>
    
    
    RESPONSE FROM USPS:
    
    ==================================
    CommErr (should be 0): 0 -
    
    ==================================
    
    USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US
    Domestic Services Selected:
    
    2021-05-13 11:17:07: RESPONSE FROM USPS:
    ==================================
    ============
    
    RAW XML FROM USPS:
    This is happening on both the test and production servers.

    The store files are in a test folder on the site currently so they are not "public", I am wondering if the directory of the store is making a difference? or if it could be something else?

    Any help would be GREATLY appreciated
    Thanks to @mikestaps for granting me access to his site. It 'looks like' the culprit is the site's CURL (v7.77.0) version. Updating the following line (in the quoteLogCurlResponse class method):
    Code:
            $message .= 'CommErr (should be 0): ' . $this->commErrNo . ' - ' . $this->commError . ' - ' .  json_encode($this->commInfo) . "\n\n";
    ... indicated that the curl http-code returned was '400' (Bad Request). That's why there's no XML returned for the quotes. Not clear as to what CURL v7.77's issue(s) is/are, but it might be worth asking the webhost to downgrade the CURL version on the site.

  9. #9
    Join Date
    Oct 2005
    Posts
    211
    Plugin Contributions
    0

    Default Re: USPS Shipping Module [Support Thread]

    I volunteer to help on a zen store and with this USPS plug in update I am not seeing how to do get the ground shipment only setting done. The ‘true’ code appears to be in the languages/english/modules/shipping/usps.php area and not where I set it before in includes/modules/shipping/usps.php code. We want everything to ship ground but not necessarily HAZMAT. How might I do this with this new code? I am using 1.55f and so far not seeing a field setting to ‘1’. And there is no logs for some odd reason although I did set it that way. Store is now getting a warning to refresh page when I go to cart. No USPS estimater. Updating from K10 version 9-6-2017 and worked still.
    Thanks,
    Justwade
    Zen 1.5.5f
    Zen 1.3.9h, Zen 1.27 + (did that, done with that)

 

 

Similar Threads

  1. Optional Shipping Insurance Module [Support Thread]
    By jettrue in forum Addon Shipping Modules
    Replies: 415
    Last Post: 6 Jul 2026, 02:45 PM
  2. MultiSite Module Support Thread
    By Gerome in forum All Other Contributions/Addons
    Replies: 2246
    Last Post: 29 Dec 2025, 10:13 AM
  3. Replies: 29
    Last Post: 24 Sep 2014, 09:59 PM
  4. Replies: 335
    Last Post: 1 Aug 2013, 08:54 PM
  5. PC Configurator Module [Support Thread]
    By lebrand2006 in forum All Other Contributions/Addons
    Replies: 254
    Last Post: 22 Aug 2012, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg