Page 1 of 2 12 LastLast
Results 1 to 10 of 379

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default USPS Shipping Module [Support Thread]


  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: USPS Shipping Module [Support Thread]

    Version 2020-09-24 K11 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292

    Note that this version is not compatible with Zen Cart versions prior to 1.5.2 and is not supported for Zen Cart versions prior to 1.5.4.

    The following changes were made:

    - Restructuring to prevent PHP notices and warnings.
    - Re-factored to use now-current code styling.
    - Includes modifications to use stripos/strpos instead of preg_match for 'simple' string-in-string checks.
    - Use foreach() instead of deprecated each()
    - Use secure (https: //secure.shippingapis.com/ShippingAPI.dll) endpoint for API requests; unsecure endpoint being retired.
    - Simplifies debug handling, 'Screen' and 'Email' no longer supported.
    - Debug filename changed to enable sort-by-name to mimic sort-by-date on the files.
    - Restores the USPS icon to this shipping-method's distribution zip-file.
    - Correct missing constant warning (MODULE_SHIPPING_USPS_REGULATIONS)
    - That 'soft' configuration setting is now available in the usps.php language file.
    - Additional, previously undefined language constants added in support of the display.
    - 'Return Receipt for Merchandise [107]' retired and USPS will return an error if requested.
    - Country name changes:
    - Country ('MK') changed from 'Macedonia, Republic of' to 'North Macedonia, Republic of'.
    - Country ('SZ') changed from 'Swaziland' to 'Eswatini'.
    - Country ('SS') added (South Sudan); note that the country is not currently registered in the countries table.
    - Add 'soft' configuration settings, present in the module's language file (refer to that file for additional information):
    - MODULE_SHIPPING_USPS_SHIPPING_CUTOFF ... the shipping cut-off time, used to determine the delivery date.
    - MODULE_SHIPPING_USPS_GROUNDONLY ... identifies whether the database field 'products::products_groundonly' should be interrogated.
    - MODULE_SHIPPING_USPS_FRAGILE ... identifies whether the database field 'products::products_fragile' should be interrogated.
    - Remove fallback 'plugin_check_for_updates' function. It's now expected to be present as part of the base Zen Cart distribution (zc152+).
    - Auto-disable on the storefront if no shipping services have been selected or if the store's country-of-origin isn't the US (country code 223).

  3. #3
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: USPS Shipping Module [Support Thread]

    Thanks lat9 for the refresh and xoxo to Ajeh for all her efforts (past, present, and future), too.

    Where would the 'if clause' be inserted in this update to create a USPS Minimum Shipping Cost? Example $6 for 1st Class.
    USPS_2020_09_24_K11>includes>modules>shipping>usps.php @line 779 ?

    Was using this in previous versions. Thanks in advance.


    $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);

    to now force the amount ...
    Code:

    if ($cost < 6.00) { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => (6.00 + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);} else { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    Cheers!
    v2.0+

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: USPS Shipping Module [Support Thread]

    @webskipper, find the following code fragment, starting at line 724:
    Code:
                // add handling for shipping method costs for extra services applied
                $cost_original = $cost;
                $cost = ($cost + $handling + $hiddenCost) * $shipping_num_boxes;
                // add handling fee per Box or per Order
                $cost += (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box') ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee;
    and add the highlighted code fragments:
    Code:
                // add handling for shipping method costs for extra services applied
                $cost_original = $cost;
    
    //-bof-Force minimum cost of $6.00
                if ($cost < 6) {
                    $cost = 6;
                }
    //-eof-Force minimum cost
    
                $cost = ($cost + $handling + $hiddenCost) * $shipping_num_boxes;
                // add handling fee per Box or per Order
                $cost += (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box') ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee;

  5. #5
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: USPS Shipping Module [Support Thread]

    Worked like magic! Thanks.

    Donated a Jackson.
    Cheers!
    v2.0+

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: USPS Shipping Module [Support Thread]

    I will periodically see

    --> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /SITE/includes/modules/shipping/usps.php on line 492. // line 487 in an unmodified file

    where that line is

    $PackageSize = count($uspsQuote['Package']['Service']);

    This is the else branch of $this->is_us_shipment.

    Is it possible this branch needs the same check as the other branch, where we check count($uspsQuote['Package']); (line 480).
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    377
    Plugin Contributions
    0

    Default Re: USPS Shipping Module [Support Thread]

    The current USPS - United States Postal Service module for Zen Cart plugin worked when i was running 1.5.7 Now I am on 1.5.7b and USPS is never an shipping option during the checkout process. No errors are displayed and no error logs created. The only customization is SBA.

  8. #8
    Join Date
    Oct 2008
    Location
    Rancho cordova, CA
    Posts
    12
    Plugin Contributions
    0

    Default Re: USPS Shipping Module [Support Thread]

    Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: USPS Shipping Module [Support Thread]

    Quote Originally Posted by teresa529 View Post
    Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
    It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: USPS Shipping Module [Support Thread]

    Quote Originally Posted by teresa529 View Post
    Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
    Quote Originally Posted by dbltoe View Post
    It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.
    What @dbltoe said.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. MultiSite Module Support Thread
    By Gerome in forum All Other Contributions/Addons
    Replies: 2220
    Last Post: 13 Mar 2024, 01:24 PM
  2. Optional Shipping Insurance Module [Support Thread]
    By jettrue in forum Addon Shipping Modules
    Replies: 396
    Last Post: 31 Mar 2023, 05:35 PM
  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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR