I want to remove media block and product info block from PDP Page of particular product type. If I use in the following way,
<referenceBlock name="product.info.media" remove="true" />
then the media block gets removed from all the pages. But it should remove from only particular product type. In block, I made a check for productType in following way,
public function _toHtml()
{
if (true) {
return parent::_toHtml();
}
return '';
}
But this is not working out. So how can I remove media and info blocks in PDP Page for particular product Type.