Page 10 of 11 FirstFirst ... 891011 LastLast
Results 91 to 100 of 103
  1. #91
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    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
    679
    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
    83
    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
    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

  5. #95
    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

  6. #96
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    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?

  7. #97
    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.

  8. #98
    Join Date
    Mar 2005
    Posts
    137
    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

  9. #99
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,841
    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.

  10. #100
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by carlwhat View Post
    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.
    ^^ Effectively this. Because by modifying my core code, you'll just have the work erased when a new version comes out (right now working on getting First Class Mail Letter to work).

    You can do this by targeting the NOTIFY_SHIPPING_USPS_CHECK_CART notifier on line 352 and having the $contents_ok variable return (boolean) false. This will in effect disable the module if triggered. I can probably write up an observer class sometime later after some testing.

 

 
Page 10 of 11 FirstFirst ... 891011 LastLast

Similar Threads

  1. PayPal RESTful API Payment Module
    By lat9 in forum PayPal RESTful support
    Replies: 261
    Last Post: 21 Apr 2025, 08:22 PM
  2. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 147
    Last Post: 8 Mar 2025, 06:38 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