Before installing the extension, please make sure to Backup your web directory and store database
Unzip the extension package file into the root folder of your Magento 2 installation.
Connect to SSH console of your server:
Navigate to the root folder of your Magento 2 setup
Run command as per below sequence,
php -f bin/magento setup:upgrade
php -f bin/magento module:enable Magedelight_Cgr
php -f bin/magento setup:static-content:deploy
Flush store cache
log out from the backend and log in again
License Configuration
License activation is not required for extension purchased from Magento Marketplace.
After successful installation of Customer Group Restrictions for Magento 2 extension, you are now required to configure the license key in the admin configuration section. You can set it from:
Step 1: Go to, Admin Control Panel > Stores > Configuration > Magedelight > Group Restrictions > License Configuration.
You will find two text boxes asking for Serial Key and Activation Key, which you received on email upon the purchase of extension. See screenshot below:
Serial Key: Enter Serial Key
Activation Key: Enter Activation Key
Step 2: Expand “General Configuration” tab, you will find a list of domains for which license is purchased and configured, now select the domain you are going to use, you can select multiple domains by clicking “Ctrl + Select”.
Step 3: Now, select “Yes” from “Enable Module” to enable extension and again click on “Save Config” button on the top right.
Backend Configuration (Admin side)
Enable Group Restriction: Select "Yes" to enable group restrictions for your store
Redirect Forbidden Access To: Select page to redirect if page is restricted for user
Backend Functionality
Title: Specify title for the rule (i.e. Purchase restriction for wholesale customers below 1000$)
Customer Groups: Select customer group to apply group restrictions
Status: Select status as "Yes" to enable rule
Forbidden Categories: Select Categories to restrict, you can select multiple categories
Redirect forbidden product access to:Select page to redirect if user is restricted to access
forbidden CMS Pages: Select CMS pages to restrict, you can select multiple pages
Redirect forbidden page access to:Select page to redirect if user is restricted to access
Price Option: Select price rule as per below,
Show Price: Show price for selected customer group
Hide Price: Hide price for selected customer group
Replace with Static Block: Display custom informative static block instead of price
Static Block: Select block to display on front-end.
Hide Add To Compare: Select "Yes" if you want to hide "Add to Compare" button
Restrict Shipping Methods: Select "Yes" to enable restriction for shipping methods
Shipping Methods: Select Shipping Method to restrict, you can select multiple shipping method. (Use Ctrl + Select, to select multiple)
Restrict Payment Methods: Select "Yes" to enable restriction for payment methods
Payment Methods: Select Payment Method to restrict, you can select multiple payment method. (Use Ctrl + Select, to select multiple)
Order Amount: Specify Minimum Order Amount to restrict order
Include Tax to Amount: Select "Yes" if you want to include tax amount in total order value
Description Message: Specify description to display user if order value is lesser than specified minimum order
Validate Each Address Separately in Multi-address Checkout: Specify "Yes", if you want to validate each addresses Separately. It will verify minimum amount per shipping address while checkout with multiple addresses and acknowledge users for invalid amount.
Multi-address Description Message: Specify description to display user if address is not valid
Frontend Functionality
Price hidden for guest user, block will be replaced with static information