Failing to remove page title
-
06-03-2021 - |
Question
I'm trying to remove page title added from Magento\Downloadable\Controller\Customer\Products::Execute
public function execute()
{
$this->_view->loadLayout();
if ($block = $this->_view->getLayout()->getBlock('downloadable_customer_products_list')) {
$block->setRefererUrl($this->_redirect->getRefererUrl());
}
$this->_view->getPage()->getConfig()->getTitle()->set(__('My Downloadable Products'));
$this->_view->renderLayout();
}
I've tried to add below piece of code into catalog_product_view_type_downlodable.xml
but nothing seems to be working.
<referenceBlock name="page.main.title" remove="true" />
Any ideas ?!
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange