Extension allows the store owner to hide the product price and add to cart button from guests or certain customer groups. This is very necessary for B2B websites where the customer can see the price of the product and add it to the shopping cart after logging on to the site.
Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
-
Go to Magento2 root folder
-
Enter following commands to install module:
For Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x
composer require faonni/module-product-available:2.0.*
For Magento CE(EE) 2.4.x
composer require faonni/module-product-available:2.4.*
Wait while dependencies are updated.
-
Create a folder {Magento root}/app/code/Faonni/ProductAvailable
-
Download the corresponding latest version
-
Copy the unzip content to the folder ({Magento root}/app/code/Faonni/ProductAvailable)
-
Go to Magento2 root folder
-
Enter following commands:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy (optional)
In the Magento Admin Panel go to Stores > Configuration > Catalog > Product Available.
Hidden only add to cart button
This works only with modules defined as Composer packages.
-
Go to Magento2 root folder
-
Enter following commands to remove database data:
php bin/magento module:uninstall -r Faonni_ProductAvailable
-
Go to Magento2 root folder
-
Enter following commands to remove:
composer remove faonni/module-product-available
-
Go to Magento2 root folder
-
Enter following commands:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy (optional)