Closed
Description
Preconditions
- Magento version >= 2.2
Steps to reproduce
- Create a carrier with carrier code 'test_carrier' for example config.xml:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<carriers>
<test_carrier>
<active>1</active>
<title>Flatrate</title>
<name>Flatrate 1</name>
<price>0</price>
<model>Namespace\Vendor\Model\Carrier\Flatrate1</model>
<sallowspecific>0</sallowspecific>
<specificerrmsg>This shipping method is not available.</specificerrmsg>
</test_carrier>
</carriers>
</default>
</config>
- Login as customer
- Go to the checkout, select created carrier and see that for example POST set-payment-information fails
Expected result
- Order placement works
Actual result
- Several web api request fail with 400 bad request, please specify a shipping method
The cause of this is several explode's by '_' in the code, where $addressInformation->getShippingCarrierCode()
should have been used in my opinion. Example: https://github.com/magento/magento2/blame/2.3-develop/app/code/Magento/Checkout/Model/PaymentInformationManagement.php#L118
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release