Web Analytics

Fill the form & Get Installation Support

    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

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.