Skip to content

magento man

Observer display return to frontend

I would like to display the result from Observer to every page, any way I can do it? app/code/MyVendor/GeoIp/Observer/GeoObserver.php <?php namespace MyModuleGeoIpObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MyModuleGeoIpHelperGeoLocation; use MagentoFrameworkViewLayoutInterface; class GeoObserver implements ObserverInterface { public function __construct( GeoLocation $helperGeoLocation,… Read More »Observer display return to frontend

Magento 2.4.5 – Product images are now showing up on the front end

Magento version – Adobe Commerce ver. 2.4.5-p1 Issue – Product images are not showing up on the front end. I’m debugging this file, getting below data. vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml echo “<pre>”; print_r($mainImage); exit; MagentoFrameworkDataObject Object ( [_data:protected] => Array ( [value_id] =>… Read More »Magento 2.4.5 – Product images are now showing up on the front end

Not Enough QTY message not showing

when I place an order, the success message is showing but the error message that says “The requested qty is not available” not showing when is QTY is greater than what on stock. how to solve this, please help