Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages