aimanecouissi / module-login-as-customer-assistance-enforce
Enforce Login as Customer assistance and remove the opt-out checkbox
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:magento2-module
pkg:composer/aimanecouissi/module-login-as-customer-assistance-enforce
Requires
- php: ~8.3.0||~8.4.0
- magento/framework: 103.0.*
- magento/module-login-as-customer-assistance: 100.4.*
README
Enforces Login as Customer – Shopping Assistance and removes the storefront opt-out checkbox.
Installation
composer require aimanecouissi/module-login-as-customer-assistance-enforce bin/magento module:enable AimaneCouissi_LoginAsCustomerAssistanceEnforce bin/magento setup:upgrade bin/magento cache:flush
Configuration
- Stores → Configuration → Customers → Login as Customer → Login as Customer Settings → Enforce Shopping Assistance
- Set to Yes to enforce shopping assistance and hide the opt-out option from customers during account creation.
Usage
When enforcement is enabled, customers cannot opt out of shopping assistance on the storefront.
To verify:
- Check that the Shopping Assistance opt-out checkbox is not shown during account creation on storefront.
- Go to Customers → All Customers → Edit → Account Information; the Shopping Assistance field is enabled and cannot be turned off.
Uninstall
bin/magento module:disable AimaneCouissi_LoginAsCustomerAssistanceEnforce composer remove aimanecouissi/module-login-as-customer-assistance-enforce bin/magento setup:upgrade bin/magento cache:flush