Type
magento2-module
This extension allows you to disable Add to cart button for guest. Useful feature for B2B store.
magento2-module
MIT
None
None
None
None
None
This module enable possibility to disable Add to cart button from product and category page for not logged in customers. It can be useful for B2B customers, if we don't want to allow guest to add product to cart.
composer require sbodak/magento2-b2b-disable-add-to-cart-button-for-guest
php bin/magento module:enable Bodak_DisableAddToCart
php bin/magento setup:upgrade
php bin/magento cache:clean
Stores > Configuration > Catalog > Catalog
Storfront
tab you will find the Disable Add to cart button for Guests
optionEnable
this option to activate the plugincomposer remove sbodak/magento2-b2b-disable-add-to-cart-button-for-guest