Open
Description
Preconditions (*)
- Magento 2.2.3
- Make sure Check Money Order method is enabled
Steps to reproduce (*)
- Create a module that depends on Magento_Checkout
- Inside your module, create the following layout
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="billing-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="payment" xsi:type="array">
<item name="children" xsi:type="array">
<item name="payments-list" xsi:type="array">
<item name="children" xsi:type="array">
<item name="checkmo-form" xsi:type="array">
<item name="children" xsi:type="array">
<item name="form-fields" xsi:type="array">
<item name="children" xsi:type="array">
<item name="postcode" xsi:type="array">
<item name="sortOrder" xsi:type="string">999</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>
</body>
</page>
- Flush caches and delete the content of pub/static/frontend/*
- Add a product to the cart and go to the checkout
Expected result (*)
- You should see the
postcode
field at the very end of the form.
Actual result (*)
postcode
field is at the very top of the form.
Additional notes
Looking at
\Magento\Checkout\Block\Checkout\LayoutProcessor::process()
I can see the postcode
inside jsLayout
object
But looking at its sortCode
it contains an array with two values.
One coming from the customer_eav_attribute
table and the other coming from layout layout.
I think it should return a string containing the layout value that replaces the value from the db.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 releaseMajor restrictions or short-term circumventions are required until a fix is available.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it