Web Analytics

Fill the form & Get Installation Support





    Disable add to cart for particular customer group

    Please follow the below steps if you want to disable add to cart for a particular customer group.

    Step 1: Create a plugin and define in Magemonkeys/Customerrestriction/etc/di.xml

    Step 2: Create a configuration field to select a customer group so that you can disable add to cart for that particular group in Magemonkeys/Customerrestriction/etc/adminhtml/system.xml.

    Step 3: Create a source model on this path Magemonkeys/CustomerrestrictionModel/Config/Source/Customer/Group.php

    Step 4: Set default value for the disable add to cart configuration field. You have to add the below code

    on this path: Magemonkeys/CustomerrestrictionModel/etc/config.xml

    Step 5: Now create a plugin for disable add to cart for a particular customer group :

    You have to follow the above steps to achieve the functionality of disabling add to cart for a particular customer group.

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Author Image

      Hire A. Patel

      Get a Free Quote





        Connect With Us