How will this block be rendered?


You are adding a child node to the product.info block using the XML:

How will this block be rendered?
A . Child block nodes are automatically rendered as HTML
B . By calling $block->getChildHtml(‘mynewblock’) in the parent block’s template
C . The layout is invalid since block elements cannot be nested
D . Automatically if the block class Custom implements the _toHtml method

Answer: B

Explanation:

Reference: https://magento.stackexchange.com/questions/49361/how-to-put-my-block-in-catalog-product­view-page

Leave a Reply

Your email address will not be published.