Skip to content

magento man

Magento 2 How to disable module using xml file?

I am facing issue to create module. I created one module and I given apply to system admin to enable disable. So, Right now I am doing module hide/show using below code. $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $module_enable = $objectManager->get(‘MagentoFrameworkAppConfigScopeConfigInterface’)->getValue(‘magefilter/magefilter/enable’); if(isset($module_enable) &&… Read More »Magento 2 How to disable module using xml file?

Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

I’ve a little problem with an override of google tag manager in Magento 2 enterprise. google-analytics-universals.js have some function that trigger the events: addToCart, removeFromCart. To get the products details in addtocart function google tag manager(google-analytics-universals.js) use: ‘Magento_Customer/js/customer-data’ with the… Read More »Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

Facing issue when running the command php bin/magento setup:upgrade

Facing issue when running the command php bin/magento setup:upgrade The XML in file “D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml” is invalid: Element ‘topic’, attribute ‘is_synchronous’: The attribute ‘is_synchronous’ is not allowed. Line: 9 Element ‘topic’, attribute ‘is_synchronous’: The attribute ‘is_synchronous’ is not allowed. Line: 12… Read More »Facing issue when running the command php bin/magento setup:upgrade

Time to live error

In my magento (2.4.6-p5, with Varnish and Redis) I keep getting following error in exception.log: [2024-05-15T18:23:57.623784+00:00] main.CRITICAL: InvalidArgumentException: Time to live is a mandatory parameter for set public headers in /home/www/sklepy/mag/vendor/magento/framework/App/Response/Http.php:137 Stack trace: #0 /home/www/sklepy/mag/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(41): MagentoFrameworkAppResponseHttp->setPublicHeaders() #1 /home/www/sklepy/mag/vendor/magento/module-page-cache/Controller/Block/Esi.php(33): MagentoFrameworkAppResponseHttpInterceptor->setPublicHeaders() #2… Read More »Time to live error