• Resolved mindtakerminis

    (@mindtakerminis)


    Starting this month, USPS stopped offering First Class and switched to a new product called Ground Advantage.

    https://www.usps.com/ship/ground-advantage.htm

    The USPS Shipping plugin for Woocommerce was not updated to accomodate that and starting today, stopped returning first class prices.

    I reached out to Woo Support, but it’s a weekend, so that was not super fruitful. If you are brave, I have a solution until the plugin is updated.

    Basically, you need to add the shipping ID from the USPS API to the file in the plugin that determines which quotes are valid ones for it to provide to Woo/user.

    The first chunk of the following file deals with First Class. If you add the last, bolded ground advantage line, it will allow the plugin to work.

    /wp-content/plugins/woocommerce-shipping-usps/includes/data/data-services.php

    
    <?php
    
    /**
     * USPS Services and subservices
     */
    return apply_filters( 'wc_usps_services', array(
    	// Domestic
    
    ??? 'D_FIRST_CLASS' => array(
    ?? ???? // Name of the service shown to the user
    ?? ???? 'name'? => 'First-Class Mail®',
    
    ?? ???? // Services which costs are merged if returned (cheapest is used). This gives us the best possible rate.
    ?? ???? 'services' => array(
    ?? ???? ??? '0'? => array(
    ?? ???? ??? ??? 'first-class-mail-large-envelope'??? => 'First-Class Mail® Large Envelope',
    ?? ???? ??? ??? 'first-class-mail-postcards'???????? => 'First-Class Mail® Postcards',
    ?? ???? ??? ??? 'first-class-mail-stamped-letter'??? => 'First-Class Mail® Stamped Letter',
    ?? ???? ??? ??? 'first-class-package-service-retail' => 'First-Class Package Service - Retail™',
    ?? ???? ??? ),
    ?? ???? ??? '12' => 'First-Class™ Postcard Stamped',
    ?? ???? ??? '15' => 'First-Class™ Large Postcards',
    ?? ???? ??? '19' => 'First-Class™ Keys and IDs',
    ?? ???? ??? '61' => 'First-Class™ Package Service',
    ?? ???? ??? '78' => 'First-Class Mail® Metered Letter',
    '1058' => 'USPS Ground Advantage;',
    
    ),
    ?? ?),

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ducky

    (@archaicsoftware)

    Life saver! thanks so much

    We’re having the same issue and it’s forcing our customers to choose shipping options that are double to quadruple the cost of Ground Advantage. Unfortunately I’m not well educated on how to work around a lack of an updated plugin issue. I haven’t got very far with Woo Support either just yet. However, I’m not afraid to try out your solution! But I cannot seem to locate the file for the plugin which determines valid quotes. Could you recommend a “how-to” website/instructional guide where someone like me could get directions on where to locate the file where I need to add the shipping ID? Any help would be greatly appreciated!

    Thread Starter mindtakerminis

    (@mindtakerminis)

    Liteaf, you’ll need to FTP into your site to get to this file

    /wp-content/plugins/woocommerce-shipping-usps/includes/data/data-services.php

    And then you’ll want to find the code I posted above and add the bolded part. It’s a bit technical, but not terrible tough.

    Depending on your host, you can setup FTP in the cpanel or dashboard. I use WPEngine, so setup FTP credentials and use SFTP.

    Thread Starter mindtakerminis

    (@mindtakerminis)

    Looks like this was fixed in version 4.7

    Will this also work with the USPS Live Rates by Octolize?

    Thread Starter mindtakerminis

    (@mindtakerminis)

    I don’t have that one, so am unsure.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @mindtakerminis

    I’m glad you were able to find a solution and thanks for sharing it with the community too! ??

    We’ve fixed this issue in the 4.7 version, released on 2023-07-11, by removing the Ground Advantage “Cubic” and “Hold For Pickup” variants from the supported rates. We recommend updating the plugin to this latest version instead of editing the file directly. This will ensure you’re working with the best possible version of our product.

    I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce USPS Shipping Plugin and First Class / Ground Advantage’ is closed to new replies.