Page 10 of 12 FirstFirst ... 89101112 LastLast
Results 91 to 100 of 113
  1. #91
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    683
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by retched View Post
    Wait, that is ...
    PHP Code:
    foreach ($check->fields['zone_id'] as $zone) {
       if (
    $zone || $zone === $order->delivery['zone_id']) $check_flag true;            

    Did you enable the geo blocking feature? Need a bit more about the configuration of the module to start tracking this down.
    Huh... figured this one out. Evidently I should not use foreach loops when pulling from the database. Patch for this one coming shortly.

  2. #92
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    683
    Plugin Contributions
    8

    Default Never Version 1.2.0 Released

    To non-encapsulated users: starting with 1.1.0, you can simply overwrite the installation by extracting the files as directed. If there were any database changes, the module will self-correct.

    Fixed

    • Fixed an issue where the estimated delivery and estimated day count would repeat twice. (Ex: "USPS (Priority Mail [est. delivery 03/09/2025] [est. delivery 03/09/2025])" ) Still not sure where it came from but it's resolved. [#36]
    • Fixed an issue where an older version of ZenCart would try to invoke zen_db_perform with capitalized commands (`UPDATE` instead of `update`) and ZC just doesn't know what to do. [#40]
    • Fixed an issue where after selecting add-ons, you couldn't clear all of them off in bulk. In short, you had to leave one up and deselect the others. [#42]
    • Fixed an issue where the originating JSON request wasn't being attached to the log. [#43]
    • Fixed an issue that caused a crash when using the "Shipping Zones" function to limit where the module should be allowed. (This evidently was also an issue in lat9's USPS module as they were trying to move away from the legacy form of traversing `$db` output. Whenever the `MoveNext()` functionality is removed, that will cause a breaking change in the module as older ZC's will be left out.) [#44]


    ---
    This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions of the included README.html or README.md to see how to install it and which versions of ZenCart can use which versions.

    I'm off to bed.

    Version is submitted to the module directory. Available on GitHub under Releases.

  3. #93
    Join Date
    Jun 2011
    Posts
    84
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by retched View Post
    Huh... figured this one out. Evidently I should not use foreach loops when pulling from the database. Patch for this one coming shortly.
    Thank you!

  4. #94
    Join Date
    Mar 2015
    Location
    Kansas City
    Posts
    1
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by retched View Post
    USPS Shipping (RESTful) for Zen Cart

    This module provides sellers a chance to offer United States Postal Service (USPS) shipping rates to customers during checkout. This is done by pulling the rates directly from the USPS' REST API.

    This module supports versions 1.5.8 onward innately. (Support from 1.5.7 and backward is not necessarily guaranteed but is plausible. Read the Installation steps below for more details.) This script was primarily written with PHP8 in mind. (It might have problems working with PHP7.)

    There isn't much difference between the two versions. However, if you managed to get the WebTools version to work, CONTINUE TO USE THAT VERSION.

    USPS API Documentation: https://developers.usps.com/apis
    This API takes advantage of four API's: Domestic Prices 3.0, International Prices 3.0, Service Standards 3.0, and OAuth 3.0.

    ZenCart Plugins Download: https://www.zen-cart.com/downloads.php?do=file&id=2395 (Pending) (or use the Releases function on the GitHub repository)

    GitHub Repository:
    https://github.com/retched/ZC-USPSRestful

    ** This thread is only for the USPSr version of the USPS module. For assistance with the original USPS module which uses the WebTools API, you should post in its megathread: https://www.zen-cart.com/showthread....Support-Thread
    I have my account on USPS all setup on USPS, but I'm getting the following error with the USPS module:

    2025-03-24 00:04:10:
    Requesting Token from USPS
    Token Request
    {
    "grant_type": "client_credentials",
    "client_id": "**REDACTED**",
    "scope": "domestic-prices addresses international-prices service-standards shipments"
    }

    2025-03-24 00:04:10:
    ==================================

    TOKEN RESPONSE FROM USPS:

    null


    ---------------------------------
    CommErr (should be 0): 60 - SSL certificate problem: unable to get local issuer certificate

    ==================================

    Zen Cart 2.1.0
    Window Server 2022 - IIS 10.5
    PHP 8.4.5
    MySQL 8.0.41.0

  5. #95
    Join Date
    Jan 2014
    Posts
    223
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    I just updated to all the new stuff. Upgraded my zencart to 2.1.0 and now using this plugin and not the old one for USPS. No clue what's going on. I have an item that is 1 oz and when i put in my zip code to get shipping estimate it shows $22.40 for ground advantage In the old system it would only be just over $5 https://thecubden.org/store

  6. #96
    Join Date
    Jan 2014
    Posts
    223
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    I just went in and checked the settings, resaved the info and it looks good now

  7. #97
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    683
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by cubmanky View Post
    I just went in and checked the settings, resaved the info and it looks good now
    Quote Originally Posted by cubmanky View Post
    I just updated to all the new stuff. Upgraded my zencart to 2.1.0 and now using this plugin and not the old one for USPS. No clue what's going on. I have an item that is 1 oz and when i put in my zip code to get shipping estimate it shows $22.40 for ground advantage In the old system it would only be just over $5 https://thecubden.org/store
    Can I know what was changed that caused such a massive swing?

  8. #98
    Join Date
    Jan 2014
    Posts
    223
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by retched View Post
    Can I know what was changed that caused such a massive swing?
    No clue. I just resaved the settings.

  9. #99
    Join Date
    Mar 2005
    Posts
    140
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    I have several categories and products I cannot use USPS.

    In the other USPS module, I was able to modify usps.php and add categories and products to exclude from using USPS. I thought I might be able to do the same with the uspsr.php but it is very different. Can I modify the file and where would I do this? would add this to the file:

    //bof: Skip and only use UPS
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','4854');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','4');
    //bof: Skip and only use UPS
    $chk_cart = 0;

    Thank you

  10. #100
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,849
    Plugin Contributions
    11

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by n8pbm View Post
    I have several categories and products I cannot use USPS.

    In the other USPS module, I was able to modify usps.php and add categories and products to exclude from using USPS. I thought I might be able to do the same with the uspsr.php but it is very different. Can I modify the file and where would I do this? would add this to the file:

    //bof: Skip and only use UPS
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','4854');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','4');
    //bof: Skip and only use UPS
    $chk_cart = 0;

    Thank you
    never modify core code when you do not have to.

    try and play along.

    create an auto-loading observer. also this post.

    that you want to observer this notifier.

    if you have successfully gotten that far, you can then add your code as follows:

    PHP Code:
    public function updateNotifyShippingUspsUpdateStatus(&$class)
            {
                
    $chk_cart 0;
                
    $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id''4854');
                
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id''4');
                if (
    $chk_cart 0) {
                    
    $class->enabled false;
                }
            } 
    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 10 of 12 FirstFirst ... 89101112 LastLast

Similar Threads

  1. PayPal RESTful API Payment Module
    By lat9 in forum PayPal RESTful support
    Replies: 282
    Last Post: 12 Jun 2025, 08:11 PM
  2. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 159
    Last Post: 26 May 2025, 12:31 PM
  3. v155 USPS Shipping Module - We are unable to find a USPS shipping quote suitable....
    By jtovar in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 6 May 2019, 11:07 PM
  4. v155 V1.5.5D USPS Shipping module, I just noticed, no USPS retail Ground Displaying
    By WiccanWitch420 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Mar 2018, 04:34 PM
  5. v139h Is the USPS shipping module required to ship with USPS?
    By yeahwhatever in forum Addon Shipping Modules
    Replies: 3
    Last Post: 14 Feb 2012, 12:58 AM

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