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