Skip to content

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; } }

Magento 2 CSP error in admin – Refused to load the image ‘blob:https://dev.mysite.com:8443/763a918d-8c49-4075-81c9-eef85867cf18’

My local dev site (Magento 2.4.6-p2) is running on a non-standard https port – 8443, so the url is https://dev.mysite.com:8443. When I try to load the site’s logo in the design config page I am getting the CSP error: Refused… Read More »Magento 2 CSP error in admin – Refused to load the image ‘blob:https://dev.mysite.com:8443/763a918d-8c49-4075-81c9-eef85867cf18’

How to customize/override magento2 extension

We are tried to customize/override the extension template file. we want to override below extension and its originale path is html/app/code/VedndorName/Marketplace/view/frontend/templates/product/add.phtml /html/app/code/VedndorName/Marketplace/view/frontend/layout/marketplace_product_add.xml Now we created a file structure to override this template with file but changes not appearing can you… Read More »How to customize/override magento2 extension