This module requires the customer to login first before accessing the whole site.
Backend
- Go to Store > Configuration > Zone > Customer Required Login
- General
- Module Enable (On and Off the module)
- Configuration
- Base Target URL (default url of login site)
- White List CMS Pages
- Warning Message
- Notification (Output a notification when the direct access on the other page was triggered.)
- General
Default Whitelisted Pages and Action
- Customer's Registration Page
- Forgot Password Page
- Administrator Login Page
- Logout Redirection
- Stripe Webhooks
Copy the content of the repository to the app/code/Zone/RequiredLogin/ folder
Enable module:
php bin/magento module:enable Zone_RequiredLogin
Disable module: (Optional)
php bin/magento module:disable Zone_RequiredLogin --clear-static-content
Update system:
php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento cache:clean
- To check the values setting:
- Disable the module through backend, and visit
[yoursite.com]/requiredlogin/index/config
- Disable the module through backend, and visit
- To check the page that the customers trying to access directly:
- Go to var/log/ and open system.log and you will see,
Zone_RequiredLogin Blocked : [action]
- Go to var/log/ and open system.log and you will see,
- Zekinah Lecaros - Initial work -