Before installing the extension, please make sure to Backup your web directory and store database
You will require to install MageDelight Base Extension first. If it is not installed then please download it from https://www.magedelight.com/pub/extensions/magedelight-base.zip and unzip the package file into the root folder of your Magento 2 installation.
Root Directory is - "app/code/magedelight/#YourExtensionName#"
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 bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
log out from the backend and log in again
If you are using Magento 2.3 or later then you do not need to activate license. Extension will be activated with silent activation mechanism and does not require activation keys to be entered manually.
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
Only one rule can be created per customer group
Frontend Functionality
Price hidden for guest user, block will be replaced with static information