sbodak / magento2-b2b-disable-add-to-cart-button-for-guest
This extension allows you to disable Add to cart button for guest. Useful feature for B2B store.
Installs: 5 481
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 6
Forks: 10
Open Issues: 1
Type:magento2-module
Requires
- php: ~7.0|~7.1|~7.2
This package is not auto-updated.
Last update: 2025-04-08 20:56:43 UTC
README
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
Storfront
tab you will find theDisable Add to cart button for Guests
option Enable
this 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