magento2-b2b-disable-add-to-cart-button-for-guest
magento2-b2b-disable-add-to-cart-button-for-guest copied to clipboard
This extension allows you to disable Add to cart button for guest. Useful feature for B2B store.
Magento 2 - Disable add to cart button for guest
Overview
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.
Compatibility
- Magento 2.1, 2.2, 2.3
Installation details
- Run
composer require sbodak/magento2-b2b-disable-add-to-cart-button-for-guest - Run
php bin/magento module:enable Bodak_DisableAddToCart - Run
php bin/magento setup:upgrade - Run
php bin/magento cache:clean
Configuration details
- Go to Magento admin interface
- Find option in
Stores > Configuration > Catalog > Catalog - Under the
Storfronttab you will find theDisable Add to cart button for Guestsoption Enablethis option to activate the plugin
Module configuration - administration panel

Removed Add to cart button in catalog - frontend view

Removed Add to cart button in product cart - frontend view

Uninstall
- Run
composer remove sbodak/magento2-b2b-disable-add-to-cart-button-for-guest
License
MIT License