Skip to content

magento man

AbstractBlock::getParentBlock() returns false due to missing “head.additional” block

We are encountering an issue on our store where sometimes the MagentoFrameworkViewElementAbstractBlock::getParentBlock() method returns false. We traced this back to the fact that the head.additional block is missing in the layout. However, this issue only occurs in our production environment… Read More »AbstractBlock::getParentBlock() returns false due to missing “head.additional” block

magento2 afterGetPrice plugin catalog rule not working on the final price

<?php namespace [Vendor][Name]PluginMagentoCatalogModel; class Product { protected $objectManager; public function __construct( MagentoFrameworkObjectManagerInterface $objectManager ) { $this->objectManager = $objectManager; } public function afterGetPrice( MagentoCatalogModelProduct $subject, $result ) { return $result + 100; } }