• Resolved phaedrus10

    (@phaedrus10)


    I have set weight and dimensions for all products. One product works correctly. The rest all return “No shipping options were found for (shipping address)”

    All shipping is restricted to USPS Priority Mail. The one that works works correctly.

    I have included the debug information for one product below.

    `array (
    ‘settings’ =>
    array (
    ‘props’ =>
    array (
    ‘endpoint’ => ‘https://secure.shippingapis.com/ShippingAPI.dll’,
    ‘defaultUserId’ => ‘891000005749’,
    ‘domestic’ =>
    array (
    0 => ‘US’,
    1 => ‘PR’,
    2 => ‘VI’,
    3 => ‘MH’,
    4 => ‘FM’,
    ),
    ‘services’ =>
    array (
    ‘EXPRESS_MAIL’ =>
    array (
    ‘name’ => ‘Priority Mail Express’,
    ‘services’ =>
    array (
    3 => ‘Priority Mail Express’,
    2 => ‘Priority Mail Express, Hold for Pickup’,
    23 => ‘Priority Mail Express, Sunday/Holiday’,
    ),
    ),
    ‘PRIORITY_MAIL’ =>
    array (
    ‘name’ => ‘Priority Mail’,
    ‘services’ =>
    array (
    1 => ‘Priority Mail’,
    33 => ‘Priority Mail, Hold For Pickup’,
    18 => ‘Priority Mail Keys and IDs’,
    47 => ‘Priority Mail Regional Rate Box A’,
    48 => ‘Priority Mail Regional Rate Box A, Hold For Pickup’,
    49 => ‘Priority Mail Regional Rate Box B’,
    50 => ‘Priority Mail Regional Rate Box B, Hold For Pickup’,
    ),
    ),
    ‘FIRST_CLASS’ =>
    array (
    ‘name’ => ‘First-Class Mail’,
    ‘services’ =>
    array (
    ‘0A’ => ‘First-Class Mail Postcards’,
    ‘0B’ => ‘First-Class Mail Letter’,
    ‘0C’ => ‘First-Class Mail Large Envelope’,
    ‘0D’ => ‘First-Class Mail Parcel’,
    12 => ‘First-Class Postcard Stamped’,
    15 => ‘First-Class Large Postcards’,
    19 => ‘First-Class Keys and IDs’,
    ‘0E’ => ‘First-Class Package Service – Retail’,
    61 => ‘First-Class Package Service’,
    53 => ‘First-Class Package Service, Hold For Pickup’,
    78 => ‘First-Class Mail Metered Letter’,
    ),
    ),
    ‘STANDARD_POST’ =>
    array (
    ‘name’ => ‘USPS Retail Ground’,
    ‘services’ =>
    array (
    4 => ‘USPS Retail Ground’,
    ),
    ),
    ‘MEDIA_MAIL’ =>
    array (
    ‘name’ => ‘Media Mail’,
    ‘services’ =>
    array (
    6 => ‘Media Mail’,
    ),
    ),
    ‘LIBRARY_MAIL’ =>
    array (
    ‘name’ => ‘Library Mail’,
    ‘services’ =>
    array (
    7 => ‘Library Mail’,
    ),
    ),
    ),
    ‘subservicesEnabled’ =>
    array (
    3 => ‘no’,
    2 => ‘no’,
    23 => ‘no’,
    1 => ‘yes’,
    33 => ‘no’,
    18 => ‘no’,
    47 => ‘no’,
    48 => ‘no’,
    49 => ‘no’,
    50 => ‘no’,
    ‘0A’ => ‘no’,
    ‘0B’ => ‘no’,
    ‘0C’ => ‘no’,
    ‘0D’ => ‘no’,
    12 => ‘no’,
    15 => ‘no’,
    19 => ‘no’,
    ‘0E’ => ‘no’,
    61 => ‘no’,
    53 => ‘no’,
    78 => ‘no’,
    4 => ‘no’,
    6 => ‘no’,
    7 => ‘no’,
    ),
    ‘supports’ =>
    array (
    0 => ‘settings’,
    ),
    ‘id’ => ‘usps_simple’,
    ‘method_title’ => ‘USPS Simple’,
    ‘method_description’ => ‘The <strong>USPS Simple</strong> plugin calculates rates for domestic shipping dynamically using USPS API during checkout.’,
    ‘enabled’ => ‘yes’,
    ‘title’ => ‘USPS Simple’,
    ‘rates’ =>
    array (
    ),
    ‘tax_status’ => ‘taxable’,
    ‘fee’ => NULL,
    ‘minimum_fee’ => NULL,
    ‘instance_id’ => 0,
    ‘instance_form_fields’ =>
    array (
    ),
    ‘instance_settings’ =>
    array (
    ),
    ‘availability’ => NULL,
    ‘countries’ =>
    array (
    ),
    ‘plugin_id’ => ‘woocommerce_’,
    ‘errors’ =>
    array (
    ),
    ‘data’ =>
    array (
    ),
    ‘serviceDescription’ => ‘This controls the title which the customer sees during checkout.’,
    ‘sender’ => ‘64730’,
    ‘userId’ => ‘832SACRE2205’,
    ‘commercialRate’ => ‘no’,
    ‘groupByWeight’ => ‘no’,
    ‘t_express_mail’ => ‘Priority Mail Express (USPS Simple)’,
    ‘t_priority_mail’ => ‘Priority Mail (USPS Simple)’,
    ‘t_first_class’ => ‘First-Class Mail (USPS Simple)’,
    ‘t_standard_post’ => ‘USPS Retail Ground (USPS Simple)’,
    ‘t_media_mail’ => ‘Media Mail (USPS Simple)’,
    ‘t_library_mail’ => ‘Library Mail (USPS Simple)’,
    ),
    ‘settings’ =>
    array (
    ‘enabled’ => ‘yes’,
    ‘sender’ => ‘64730’,
    ‘user_id’ => ‘832SACRE2205’,
    ‘commercial_rate’ => ‘no’,
    ‘group_by_weight’ => ‘no’,
    ‘express_mail’ => ”,
    ‘t_express_mail’ => ”,
    ‘express_mail_3’ => ‘no’,
    ‘express_mail_2’ => ‘no’,
    ‘express_mail_23’ => ‘no’,
    ‘priority_mail’ => ”,
    ‘t_priority_mail’ => ”,
    ‘priority_mail_1’ => ‘yes’,
    ‘priority_mail_33’ => ‘no’,
    ‘priority_mail_18’ => ‘no’,
    ‘priority_mail_47’ => ‘no’,
    ‘priority_mail_48’ => ‘no’,
    ‘priority_mail_49’ => ‘no’,
    ‘priority_mail_50’ => ‘no’,
    ‘first_class’ => ”,
    ‘t_first_class’ => ”,
    ‘first_class_0A’ => ‘no’,
    ‘first_class_0B’ => ‘no’,
    ‘first_class_0C’ => ‘no’,
    ‘first_class_0D’ => ‘no’,
    ‘first_class_12’ => ‘no’,
    ‘first_class_15’ => ‘no’,
    ‘first_class_19’ => ‘no’,
    ‘first_class_0E’ => ‘no’,
    ‘first_class_61’ => ‘no’,
    ‘first_class_53’ => ‘no’,
    ‘first_class_78’ => ‘no’,
    ‘standard_post’ => ”,
    ‘t_standard_post’ => ”,
    ‘standard_post_4’ => ‘no’,
    ‘media_mail’ => ”,
    ‘t_media_mail’ => ”,
    ‘media_mail_6’ => ‘no’,
    ‘library_mail’ => ”,
    ‘t_library_mail’ => ”,
    ‘library_mail_7’ => ‘no’,
    ),
    ),
    ‘package’ =>
    array (
    ‘contents’ =>
    array (
    ‘c4fa7aecedac73641320d24d5bf3bf38’ =>
    array (
    ‘key’ => ‘c4fa7aecedac73641320d24d5bf3bf38’,
    ‘product_id’ => 3613,
    ‘variation_id’ => 0,
    ‘variation’ =>
    array (
    ),
    ‘quantity’ => 1,
    ‘data_hash’ => ‘b5c1d5ca8bae6d4896cf1807cdf763f0’,
    ‘line_tax_data’ =>
    array (
    ‘subtotal’ =>
    array (
    ),
    ‘total’ =>
    array (
    ),
    ),
    ‘line_subtotal’ => 35.0,
    ‘line_subtotal_tax’ => 0,
    ‘line_total’ => 35.0,
    ‘line_tax’ => 0,
    ‘product’ =>
    array (
    ‘name’ => ‘Sacred Well Elemental Coins’,
    ‘slug’ => ‘sacred-well-elemental-coins’,
    ‘price’ => ’35’,
    ‘regular_price’ => ’35’,
    ‘sale_price’ => ”,
    ‘weight’ => ‘.25 kg’,
    ‘weight_lbs’ => 0.55115499999999995051069845430902205407619476318359375,
    ‘dimensions’ => ’20 x 5 x 0.6 cm’,
    ‘dimensions_in’ => ‘7.874 x 1.9685 x 0.23622’,
    ),
    ),
    ),
    ‘contents_cost’ => 35.0,
    ‘applied_coupons’ =>
    array (
    ),
    ‘user’ =>
    array (
    ‘ID’ => 1,
    ),
    ‘destination’ =>
    array (
    ‘country’ => ‘US’,
    ‘state’ => ‘IL’,
    ‘postcode’ => ‘62454’,
    ‘city’ => ‘Robinson’,
    ‘address’ => ‘305 S King St.’,
    ‘address_1’ => ‘305 S King St.’,
    ‘address_2’ => ”,
    ),
    ‘cart_subtotal’ => ’35’,
    ‘rates’ =>
    array (
    ),
    ),
    ‘requests’ =>
    array (
    ‘ONLINE’ => ‘API=RateV4&XML=
    <RateV4Request USERID=”832SACRE2205″>
    <Revision>2</Revision>
    <Package ID=”c4fa7aecedac73641320d24d5bf3bf38:1:7.874:1.9685:0.23622:0.551155″>
    <Service>ONLINE</Service>
    <ZipOrigination>64730</ZipOrigination>
    <ZipDestination>62454</ZipDestination>
    <Pounds>0</Pounds>
    <Ounces>8.82</Ounces>
    <Container/>
    <Size>REGULAR</Size>
    <Width>1.9685</Width>
    <Length>7.874</Length>
    <Height>0.23622</Height>
    <Girth>4</Girth>
    <Machinable>true</Machinable>
    <ShipDate>19-Jul-2022</ShipDate>
    </Package>
    </RateV4Request>
    ‘,
    ‘STANDARD POST’ => ‘API=RateV4&XML=
    <RateV4Request USERID=”832SACRE2205″>
    <Revision>2</Revision>
    <Package ID=”c4fa7aecedac73641320d24d5bf3bf38:1:7.874:1.9685:0.23622:0.551155″>
    <Service>STANDARD POST</Service>
    <ZipOrigination>64730</ZipOrigination>
    <ZipDestination>62454</ZipDestination>
    <Pounds>0</Pounds>
    <Ounces>8.82</Ounces>
    <Container/>
    <Size>REGULAR</Size>
    <Width>1.9685</Width>
    <Length>7.874</Length>
    <Height>0.23622</Height>
    <Girth>4</Girth>
    <GroundOnly>true</GroundOnly>
    <Machinable>true</Machinable>
    <ShipDate>19-Jul-2022</ShipDate>
    </Package>
    </RateV4Request>
    ‘,
    ),
    ‘responses’ =>
    array (
    ‘ONLINE’ =>
    array (
    ‘headers’ =>
    Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
    ‘data’ =>
    array (
    ‘content-encoding’ => ‘gzip’,
    ‘access-control-allow-origin’ => ‘*’,
    ‘cache-control’ => ‘private’,
    ‘content-type’ => ‘text/xml’,
    ‘date’ => ‘Mon, 18 Jul 2022 16:59:28 GMT’,
    ‘ntcoent-length’ => ‘363’,
    ‘server’ => ‘Microsoft-IIS/10.0’,
    ‘strict-transport-security’ => ‘max-age=31536000 ; includeSubDomains’,
    ‘x-aspnet-version’ => ‘4.0.30319’,
    ‘x-backside-transport’ => ‘OK OK’,
    ‘x-frame-options’ => ‘SAMEORIGIN’,
    ‘x-global-transaction-id’ => ‘e41d617462d5917c4796569f’,
    ‘x-powered-by’ => ‘ASP.NET’,
    ‘x-ruleset-version’ => ‘1.0’,
    ‘content-length’ => ‘284’,
    ),
    )),
    ‘body’ => ‘<?xml version=”1.0″ encoding=”UTF-8″?>
    <RateV4Response>
    <Package ID=”c4fa7aecedac73641320d24d5bf3bf38:1:7.874:1.9685:0.23622:0.551155″>
    <Error>
    <Number>-2147219385</Number>
    <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
    <Description>The entered cubic feet value must be greater than 0</Description>
    <HelpFile/>
    <HelpContext/>
    </Error>
    </Package>
    </RateV4Response>
    ‘,
    ‘response’ =>
    array (
    ‘code’ => 200,
    ‘message’ => ‘OK’,
    ),
    ‘cookies’ =>
    array (
    ),
    ‘filename’ => NULL,
    ),
    ‘STANDARD POST’ =>
    array (
    ‘headers’ =>
    Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
    ‘data’ =>
    array (
    ‘content-encoding’ => ‘gzip’,
    ‘access-control-allow-origin’ => ‘*’,
    ‘cache-control’ => ‘private’,
    ‘content-type’ => ‘text/xml’,
    ‘date’ => ‘Mon, 18 Jul 2022 16:59:20 GMT’,
    ‘ntcoent-length’ => ‘2976’,
    ‘server’ => ‘Microsoft-IIS/10.0’,
    ‘strict-transport-security’ => ‘max-age=31536000 ; includeSubDomains’,
    ‘x-aspnet-version’ => ‘4.0.30319’,
    ‘x-backside-transport’ => ‘OK OK’,
    ‘x-frame-options’ => ‘SAMEORIGIN’,
    ‘x-global-transaction-id’ => ‘ce7aa45262d5917d9602342f’,
    ‘x-powered-by’ => ‘ASP.NET’,
    ‘x-ruleset-version’ => ‘1.0’,
    ‘content-length’ => ‘669’,
    ),
    )),
    ‘body’ => ‘<?xml version=”1.0″ encoding=”UTF-8″?>
    <RateV4Response>
    <Package ID=”c4fa7aecedac73641320d24d5bf3bf38:1:7.874:1.9685:0.23622:0.551155″>
    <ZipOrigination>64730</ZipOrigination>
    <ZipDestination>62454</ZipDestination>
    <Pounds>0</Pounds>
    <Ounces>8.82</Ounces>
    <Container>VARIABLE</Container>
    <Machinable>TRUE</Machinable>
    <Zone>4</Zone>
    <Postage CLASSID=”4″>
    <MailService>USPS Retail Ground<sup>®</sup></MailService>
    <Rate>9.25</Rate>
    <SpecialServices>
    <SpecialService>
    <ServiceID>104</ServiceID>
    <ServiceName>Certificate of Mailing (Form 3817)</ServiceName>
    <Available>true</Available>
    <Price>1.75</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>103</ServiceID>
    <ServiceName>Collect on Delivery</ServiceName>
    <Available>true</Available>
    <Price>9.20</Price>
    <DeclaredValueRequired>true</DeclaredValueRequired>
    <DueSenderRequired>false</DueSenderRequired>
    </SpecialService>
    <SpecialService>
    <ServiceID>175</ServiceID>
    <ServiceName>Collect on Delivery Restricted Delivery</ServiceName>
    <Available>true</Available>
    <Price>15.45</Price>
    <DeclaredValueRequired>true</DeclaredValueRequired>
    <DueSenderRequired>false</DueSenderRequired>
    </SpecialService>
    <SpecialService>
    <ServiceID>100</ServiceID>
    <ServiceName>Insurance</ServiceName>
    <Available>true</Available>
    <Price>2.60</Price>
    <DeclaredValueRequired>true</DeclaredValueRequired>
    <DueSenderRequired>false</DueSenderRequired>
    </SpecialService>
    <SpecialService>
    <ServiceID>177</ServiceID>
    <ServiceName>Insurance Restricted Delivery</ServiceName>
    <Available>true</Available>
    <Price>17.25</Price>
    <DeclaredValueRequired>true</DeclaredValueRequired>
    <DueSenderRequired>false</DueSenderRequired>
    </SpecialService>
    <SpecialService>
    <ServiceID>108</ServiceID>
    <ServiceName>Signature Confirmation<sup>™</sup></ServiceName>
    <Available>true</Available>
    <Price>3.65</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>173</ServiceID>
    <ServiceName>Signature Confirmation<sup>™</sup> Restricted Delivery</ServiceName>
    <Available>true</Available>
    <Price>9.90</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>156</ServiceID>
    <ServiceName>Signature Confirmation<sup>™</sup> Electronic</ServiceName>
    <Available>true</Available>
    <Price>3.10</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>174</ServiceID>
    <ServiceName>Signature Confirmation<sup>™</sup> Electronic Restricted Delivery</ServiceName>
    <Available>true</Available>
    <Price>9.35</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>106</ServiceID>
    <ServiceName>USPS Tracking<sup>®</sup></ServiceName>
    <Available>true</Available>
    <Price>0.00</Price>
    </SpecialService>
    <SpecialService>
    <ServiceID>155</ServiceID>
    <ServiceName>USPS Tracking<sup>®</sup> Electronic</ServiceName>
    <Available>true</Available>
    <Price>0.00</Price>
    </SpecialService>
    </SpecialServices>
    </Postage>
    </Package>
    </RateV4Response>
    ‘,
    ‘response’ =>
    array (
    ‘code’ => 200,
    ‘message’ => ‘OK’,
    ),
    ‘cookies’ =>
    array (
    ),
    ‘filename’ => NULL,
    ),
    ),
    ‘unitedResponse’ => ‘<?xml version=”1.0″ encoding=”UTF-8″?>
    <RateV4Response>
    <Package ID=”c4fa7aecedac73641320d24d5bf3bf38:1:7.874:1.9685:0.23622:0.551155″>
    <Error>
    <Number>-2147219385</Number>
    <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
    <Description>The entered cubic feet value must be greater than 0</Description>
    <HelpFile/>
    <HelpContext/>
    </Error>
    <Postage CLASSID=”4″>
    <MailService>USPS Retail Ground<sup>?</sup></MailService>
    <Rate>9.25</Rate>
    </Postage>
    </Package>
    </RateV4Response>
    ‘,
    ‘shownRates’ =>
    array (
    ),
    ‘eliminatedRates’ =>
    array (
    ),
    )`

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Dan

    (@dangoodman)

    Thank you for the details.

    It appears the USPS API won’t handle items less than 0.25 inch.

    I have updated the plugin to work around that issue. Could you check if the latest version works for you?

Viewing 1 replies (of 1 total)
  • The topic ‘Priority Shipping working for only one product’ is closed to new replies.