magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

UPS Rates for Shipments over 150lbs Not Working #36962

Closed bulldogm11 closed 1 year ago

bulldogm11 commented 1 year ago

Preconditions and environment

Vanilla Install of Magento 2.4.4-p2

UPS Rates are not displayed/returned when total weight of all items in cart exceeds 150lbs.

UPS Shipping is configured to "Divide to equal weight (one request)"

[2023-03-03T22:43:56.961178+00:00] main.DEBUG: array ( 'request' => array ( 'accept_UPS_license_agreement' => 'yes', '10_action' => '4', '13_product' => 'GNDRES', '14_origCountry' => 'US', '15_origPostal' => '85120', 'origCity' => 'apache junction', '19_destPostal' => '85373', '22_destCountry' => 'US', '23_weight' => 3000.0, '47_rate_chart' => 'Customer Counter', '48_container' => '00', '49_residential' => '01', 'weight_std' => 'lbs', ), 'result' => '

UPSOnLine5%The maximum per package weight for the selected service from the selected country or territory is 150.00 pounds.%1035%

', ) [] [] [2023-03-03T22:43:56.961470+00:00] main.DEBUG: Sorry, something went wrong. Please try again or contact us and we'll try to help.: The maximum per package weight for the selected service from the selected country or territory is 150.00 pounds. [] []

Steps to reproduce

  1. Add enough products to cart to exceed 150 total lbs.
  2. Checkout
  3. UPS Shipping rate will not show as an option.

Expected result

Request should divide weight to equal amounts and retrun results as seen below:

[2023-03-03 22:30:48] main.DEBUG: array ( 'request' => array ( 'accept_UPS_license_agreement' => 'yes', '10_action' => '4', '13_product' => 'GNDRES', '14_origCountry' => 'US', '15_origPostal' => '85120', 'origCity' => 'apache junction', '19_destPostal' => '85373', '22_destCountry' => 'US', '23_weight' => 150.0, '47_rate_chart' => 'Customer Counter', '48_container' => '00', '49_residential' => '01', 'weight_std' => 'lbs', ), 'result' => '

UPSOnLine4%1DM%85120%US%85373%US%102%150%532.39%29.00%561.39%10:00 A.M.% 4%1DA%85120%US%85373%US%102%150%497.29%29.00%526.29%12:00 P.M.% 4%1DP%85120%US%85373%US%132%150%455.94%29.00%484.94%End of Day% 4%2DA%85120%US%85373%US%202%150%298.89%29.00%327.89%End of Day% 4%3DS%85120%US%85373%US%302%150%228.03%29.00%257.03%End of Day% 4%GND%85120%US%85373%US%002%150%176.21%29.00%205.21%End of Day%

Actual result

This is what is returned:

[2023-03-03T22:43:56.961178+00:00] main.DEBUG: array ( 'request' => array ( 'accept_UPS_license_agreement' => 'yes', '10_action' => '4', '13_product' => 'GNDRES', '14_origCountry' => 'US', '15_origPostal' => '85120', 'origCity' => 'apache junction', '19_destPostal' => '85373', '22_destCountry' => 'US', '23_weight' => 3000.0, '47_rate_chart' => 'Customer Counter', '48_container' => '00', '49_residential' => '01', 'weight_std' => 'lbs', ), 'result' => '

UPSOnLine5%The maximum per package weight for the selected service from the selected country or territory is 150.00 pounds.%1035%

', ) [] [] [2023-03-03T22:43:56.961470+00:00] main.DEBUG: Sorry, something went wrong. Please try again or contact us and we'll try to help.: The maximum per package weight for the selected service from the selected country or territory is 150.00 pounds. [] []

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @bulldogm11. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Lima. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Lima commented 1 year ago

@magento give me 2.4-develop instance

engcom-Lima commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Lima, here is your Magento Instance: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering Admin access: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering/admin_7087 Login: 8038b347 Password: f9ff8e5b8526

engcom-Lima commented 1 year ago

Hi @bulldogm11 ,

Thanks for your contribution and collaboration. Tried to reproduce the issue in Magento 2.4-develop instance (vanilla) but issue is not reproducible to me. I have followed below steps :

Steps to reproduce:

Screenshots:

Screenshot 2023-03-06 at 12 45 35 PM

Kindly provide us more information in order to reproduce the issue. Also, try to verify the issue in 2.4-develop instance and let us know if you are facing any issue.

Thanks

devchris79 commented 1 year ago

What is set in the maximum package weight field of the UPS shipping configuration? You should have this set to less than 150lbs:

Untitled

bulldogm11 commented 1 year ago

Yes, the weight is set to 150 lbs.

I will ask for a 2.4.4-p2 instance and confirm. I've installed 2.4.4-p2 on 3 servers I have access to and all have the issue.

Thanks,

Brandon

On Mon, Mar 6, 2023 at 8:57 AM devchris79 @.***> wrote:

What is set in the maximum package weight field of the UPS shipping configuration? You should have this set to less than 150lbs:

[image: Untitled] https://user-images.githubusercontent.com/43850303/223162940-d720662b-9981-4c7a-bb49-e47deeda8f70.png

— Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/36962#issuecomment-1456400672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCEASPDCHTNJDD5KQW2F3W2YCQFANCNFSM6AAAAAAVPEPRWU . You are receiving this because you were mentioned.Message ID: @.***>

bulldogm11 commented 1 year ago

@magento give me 2.4-develop instance

bulldogm11 commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11, here is your Magento Instance: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering Admin access: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering/admin_7b75 Login: 90be6896 Password: 8e8240323f34

bulldogm11 commented 1 year ago

@magento give me 2.4.4-p2-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

bulldogm11 commented 1 year ago

How do I confirm 2.4.4-p2 instance?

bulldogm11 commented 1 year ago

@magento give me 2.4.4-p2-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

bulldogm11 commented 1 year ago

@devchris79 how do I confirm the instance is 2.4.4-p2?

bulldogm11 commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @bulldogm11, here is your Magento Instance: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering Admin access: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering/admin_81a2 Login: 70bae21e Password: a6dc64026de2

bulldogm11 commented 1 year ago

Confirmed the issue exists on the instance above.

Steps to replicate:

  1. Logged in as admin and created category and test product with weight of 60 lbs.
  2. Set Shipping address (Stores --> Sales --> Shipping Settings
  3. Set Delivery Methods (See attached photo)
  4. Added 1 product to cart with weight of 60 lbs. Shipping rates were displayed correctly.
  5. Edited cart to 6 product (total weight exceeds 150 lbs).
  6. Proceeded back to checkout page. No shipping rates displayed. Firefox_Screenshot_2023-03-06T22-53-34 427Z Firefox_Screenshot_2023-03-06T22-53-58 509Z Firefox_Screenshot_2023-03-06T22-54-18 411Z Firefox_Screenshot_2023-03-06T22-54-36 109Z Firefox_Screenshot_2023-03-06T22-55-19 712Z
engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering Admin access: https://669a9e38d13f049574f3cff4e74ff3bf.instances.magento-community.engineering/admin_5676 Login: 378a68a8 Password: 21725103f547

engcom-Bravo commented 1 year ago

Hi @bulldogm11,

Thanks for your Update.

Kindly configure your UPS credentials in the backend.otherwise it will not reflect in the frontend.Please enter your Access License Number User ID Shipper Number Password

Screenshot 2023-03-07 at 1 07 47 PM

Checkout

Kindly recheck the behavior on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

bulldogm11 commented 1 year ago

That is for UPS XML method only and has no effect on the issue.

The rates display fine under 150 lbs.

engcom-Bravo commented 1 year ago

Hi @bulldogm11,

Thanks for your update.

We have further investigated in the code base.The maximum package weight is 150 only,

Kindly check this https://www.ups.com/us/en/support/shipping-support/shipping-dimensions-weight.page#:~:text=Size%20and%20Weight%20Limits,may%20require%20freight%20shipping%20services. As per this UPS have certain size and weight limits.Packages above certain size and weight combinations may require freight shipping services

Screenshot 2023-03-08 at 6 58 06 PM

Kindly let us know if you are still facing any issue.

Thanks.

devchris79 commented 1 year ago

Hi @engcom-Bravo I think you have misunderstood, UPS does indeed have a maximum single package limit of 150lbs, the Magento setting below should break down the total cart into multiple boxes of the maximum weight setting.

What is set in the maximum package weight field of the UPS shipping configuration? You should have this set to less than 150lbs:

Untitled

bulldogm11 commented 1 year ago

@devchris79 Thank you for your response!

Yes the Maximum Package Weight is set to 150 lbs.

You are also correct in that the problem is that with the 2.4.4-p2 Magento instance, the package is no longer divided into multiple boxes and sent to UPS for rates, then totaled. Only one request is being sent to UPS of the total combined weight of all items in the cart. If all items in the cart exceed 150 lbs, no rates are available.

From my quick investigation, this issue started with the 2.4.4 version.

devchris79 commented 1 year ago

@bulldogm11 Just another thought that 2.4.4 is the transition point to php 8.1, what version are you using?

bulldogm11 commented 1 year ago

@devchris79

I've tested in 7.4., 8.0, and 8.1. I had the same thought as you initially. Unless I missed something in my PHP modules, the version had no bearing on the result.

Plus it's been confirmed on the dev instance here. I'm assuming the dev instance would use PHP 8.1.

engcom-Bravo commented 1 year ago

@devchris79 @bulldogm11. Thanks for your update.

As per Magento devdocs https://experienceleague.adobe.com/docs/commerce-admin/stores-sales/delivery/shipping-carriers/ups.html?lang=en.

Screenshot 2023-03-09 at 6 36 55 PM

The standard United Parcel Service type is scheduled for deprecation. For new configurations, you should use the default United Parcel Service XML type. We should use UPS XML Method.

Please let us know if you are still facing any issue.

Thanks.

bulldogm11 commented 1 year ago

@engcom-Bravo Thank you for your reply. I understand it is scheduled for deprecation and I have a few comments/questions:

  1. It is still a bug in 2.4.4-p2 and is not deprecated in that version, correct? IMO, it should be resolved/fixed.
  2. Why deprecate this feature and require users to resister for a UPS account? For majority of consumers, they use 3rd party shipping services like Pirate ship, Ship station, etc.. Options like this allow us to ship product without having to set up accounts at all of the various shipping companies (Fedex, UPS, DHL, USPS). We need options to get shipping rates from some carriers without the requirement of establishing accounts or going through a complicated and cumbersome set-up process.
engcom-Bravo commented 1 year ago

Hi @bulldogm11,

Thanks for your update.

We are moving this issue to on hold, we need confirmation from PO on this issue.Will update you accordingly.

Thanks

engcom-Bravo commented 1 year ago

Hi @bulldogm11,

We got Reply from PO as this follows:

We should not fix the issue with the standard endpoint, this endpoint should be removed from the code in favor of XML one. We can schedule this change for 2.4.7 scope.

Thanks.

engcom-Bravo commented 1 year ago

Hi @bulldogm11,

We have noticed that this issue has not been updated for a period of 14 Days.
Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.

mikeshiek commented 1 year ago

@bulldogm11 were you able to find a fix for this? We have been having this issue for months with no fix.

bulldogm11 commented 1 year ago

@mikeshiek No I did not. According to the comments above, Magento is not interested in fixing this as they are reportedly deprecating that option. I don't agree with that decision.