Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





    Disable add to cart for particular customer group

    Related articles

    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.

    Contact us for scientific strategies to increase your site conversions





      Connect With Us