enter image description here

I need to add between id='shipping' and id='opc-shipping_method' but unable to do.

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceBlock name="checkout.root">
                <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="custom-form" xsi:type="array">
                                            <!-- Add this item to configure your js file  -->
                                            <item name="component" xsi:type="string">Vendor_Module/js/view/checkout/vendor-checkout-form</item>
                                            <item name="config" xsi:type="array">
                                                <!-- And this to add your html template  -->

                                                <item name="sortOrder" xsi:type="string">2</item> 
                                                <item name="template" xsi:type="string">Vendor_Module/vendor-checkout-form</item>


Sort Order doesn't do the trick as 2 it adds bellow shipping method if 1 add above shipping address.

maybe 1.5 ahahahah.

Anyone have any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.