When adding code:
<item name="shippingAdditional" xsi:type="array"> <item name="component" xsi:type="string">uiComponent</item> <item name="displayArea" xsi:type="string">shippingAdditional</item> <item name="children" xsi:type="array"> <item name="additional_block" xsi:type="array"> <item name="component" xsi:type="string">Vendor_Namespace/js/view/checkout/shipping/additional-block</item> </item> </item> </item>
In checkout_index_index.xml in shippingAddress children section it has no effect (js file is not loading). This solution can be found on several webpages. However when using plugin created for
\Magento\Checkout\Block\Checkout\LayoutProcessor::process with added fields in children dimension:
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shippingAdditional'] = [ 'component' => 'uiComponent', 'displayArea' => 'shippingAdditional', 'children' => [...
fields are displayed in div onepage-checkout-shipping-method-additional-load.
My question is: has this ever worked? I'm facing this problem in newest magento version (2.2.0).