Run the following command to disable SELinux immediately
setenforce 0
getenforce
Run the following command to disable SELinux immediately
setenforce 0
getenforce
I am creating an extension that will allow you to hide/disable add to cart button for certain customer groups.
1) Declare a module.
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="PHPCodez_Disableaddtocart" setup_version="0.0.1" /> </config>
2) Register a module. Continue reading Magento 2 Disable Add To Cart Customer Group
It can be achived as follows.
A. Set enable_dl to Off in the server’s php.ini configuration file.
B. Add dl to the current value of disable_functions in the server’s php.ini configuration file.
Run the following command to disable developer mode
php bin/magento deploy:mode:set production