sbodak/magento2-b2b-disable-add-to-cart-button-for-guest 1.0.3

This extension allows you to disable Add to cart button for guest. Useful feature for B2B store.

Type

magento2-module

License

MIT

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

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

  1. Run composer require sbodak/magento2-b2b-disable-add-to-cart-button-for-guest
  2. Run php bin/magento module:enable Bodak_DisableAddToCart
  3. Run php bin/magento setup:upgrade
  4. Run php bin/magento cache:clean

Configuration details

  1. Go to Magento admin interface
  2. Find option in Stores > Configuration > Catalog > Catalog
  3. Under the Storfront tab you will find the Disable Add to cart button for Guests option
  4. Enable this option to activate the plugin

Module configuration - administration panel

Module configuration - administration panel

Removed Add to cart button in catalog - frontend view

Remove registration form

Removed Add to cart button in product cart - frontend view

Remove registration form

Uninstall

  1. Run composer remove sbodak/magento2-b2b-disable-add-to-cart-button-for-guest

License

MIT License