Hello,
I am trying to display a block inside the 'shipping & handling information', below the shipping method, on the order view page. I am almost sure this block is order_shipping_view, but using it in layout like below simply does not work.
<referenceBlock name="order_shipping_view">
<block class="Wisencoders\WhiteGlove\Block\Order\View\WhiteGloveInfo" name="white_glove_info" template="order/view/white_glove_info.phtml" after="-"/>
</referenceBlock>
I am out of ideas and I rally need to place my block there. I know I can override the whole Magento_Shipping:rder/view/info.phtm template, but only for such a simple task seems totally counterproductive. Is there any other way?
Thanks
You can use the below code:
<referenceBlock name="order_tab_info"> <block class="Wisencoders\WhiteGlove\Block\Order\View\WhiteGloveInfo" name="shipping_white_glove_info" template="Wisencoders_WhiteGlove::order/view/white_glove_info.phtml" after="-"/> </referenceBlock>
It doesn't work. And anyway I really want it under the shipping block. I know how to place it somewhere else on page.