cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot display info under shipping information in order view

Cannot display info under shipping information in order view

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:Smiley Surprisedrder/view/info.phtm template, but only for such a simple task seems totally counterproductive. Is there any other way?

 

Thanks

2 REPLIES 2

Re: Cannot display info under shipping information in order view

@itmultimobd453 

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>

 

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Cannot display info under shipping information in order view

It doesn't work. And anyway I really want it under the shipping block. I know how to place it somewhere else on page.