cancel
Showing results for 
Search instead for 
Did you mean: 

how is the billing-address form placed?

how is the billing-address form placed?

Hi,

I need to move the billing address form to another place but I can't figure out where it is placed.

I found the .html template file for the billing form and it seems this is the place where it ends up in the checkout_index_index.xml:

 

<item name="billing-step" xsi:type="array">
    <item name="component" xsi:type="string">uiComponent</item>
    <item name="sortOrder" xsi:type="string">2</item>
    <item name="children" xsi:type="array">
        <item name="payment" xsi:type="array">
            <item name="component" xsi:type="string">Magento_Checkout/js/view/payment</item>
            <item name="config" xsi:type="array">
                <item name="title" xsi:type="string" translate="true">Payment</item>
            </item>
            <item name="children" xsi:type="array">
                <!-- ... -->
                <!-- merge your payment methods here -->
                <item name="afterMethods" xsi:type="array">
                    <item name="component" xsi:type="string">uiComponent</item>
                    <item name="displayArea" xsi:type="string">afterMethods</item>
                    <item name="children" xsi:type="array">
                        <!-- merge additional data after payment methods here -->

<!-- I think here the billing form ends up -->

                    </item>
                </item>
            </item>
        </item>
    </item>
</item>

But it's not specifically placed here and I can't seem to find another place where it is injected to that place.

 

So can anybody help me to find where the placement is done (and how I can move it, hopefully the first explains the later anyway)!

 

Thanks!