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.55k stars 9.32k forks source link

Error SelectedShippingMethod on mutation setShippingMethodsOnCart is null #39175

Closed owandrejavidovic closed 1 month ago

owandrejavidovic commented 1 month ago

The issue is in Magento 2.4.7 mutation { setShippingMethodsOnCart( input: { cart_id: "walNToYaEaFeN4QKFoQwz9hlChT124Gn" shipping_methods: [{ carrier_code : "your_method" method_code : "your_method" }] } ) { cart { email id is_virtual owNewsletterSubscribe shipping_addresses { selected_shipping_method{ carrier_code carrier_title } street telephone uid } total_quantity } } }

Response: { "data": { "setShippingMethodsOnCart": { "cart": { "email": "peter.novak+41@optiweb.com", "id": "fPM15smAU0qoOacz8LT7XlfXEenvTT9p", "is_virtual": false, "shipping_addresses": [ { "selected_shipping_method": null, // this is the issue "street": [ "Test 1" ], "telephone": "041676376", "uid": 233034 } ], "total_quantity": 1 } } } } image

image

Originally posted by @owandrejavidovic in https://github.com/magento/magento2/issues/38735#issuecomment-2352734668

m2-assistant[bot] commented 1 month ago

Hi @owandrejavidovic. 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 month 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:

engcom-Bravo commented 1 month ago

Hi @owandrejavidovic,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Screenshot 2024-09-20 at 16 38 20

There is no error for setShippingMethodsOnCart mutation.

Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

owandrejavidovic commented 1 month ago

Can you check on Magento 2.7.4? There is an error.

engcom-Bravo commented 1 month ago

Hi @owandrejavidovic,

Thanks for your update.

It is recommended to verify the issues in Latest 2.4-develop Magento instance.Could you please check if any third party modules can causing this issue.

Thanks.

engcom-Bravo commented 1 month ago

Hi @owandrejavidovic,

We have noticed that this issue has not been updated since long time.
Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks