cancel
Showing results for 
Search instead for 
Did you mean: 

Allow remote shopping assistance ... feature How to override enable by default

Allow remote shopping assistance ... feature How to override enable by default

Is it possible to enable by default Allow remote shopping assistance for all customers. Currently I am receiving this error... 

 

Login as Customer not enabled

The user has not enabled the "Allow remote shopping assistance" functionality. Contact the customer to discuss this user configuration.

 

2 REPLIES 2

Re: Allow remote shopping assistance ... feature How to override enable by default

Hello @patrickpla5aa2 

 

Magento 2 does not have a built-in feature to enable "Allow remote shopping assistance" by default for all customers. "Allow remote shopping assistance" is an optional setting that allows customers to grant permission for store representatives to access their accounts and assist them with their shopping experience. However, if you want to automatically enable this setting for all customers, you may need to implement a custom solution. Here's an outline of the steps you could take:

  1. Create a custom module:
    1. Please create a custom module in Magento 2 to implement the desired functionality. You can follow Magento's guidelines on how to create a custom module.
  2. Override the customer registration controller:
    1. Please override the customer registration controller in your custom module to modify the registration process. You can create a plugin for the createPost method of the Magento\Customer\Controller\Account\CreatePost class to set the "Allow remote shopping assistance" option to "Yes" for all customers during the registration process.
  3. Update customer data:
    1. In the plugin, you can update the customer data during the registration process to set the "Allow remote shopping assistance" option to "Yes" by default. You can use the setData method of the Magento\Customer\Api\Data\CustomerInterface interface to set the value of the "Allow remote shopping assistance" field to "Yes".
  4. Test and debug:
    1. Test the custom module thoroughly to ensure that it's working as expected. Check the registration process to confirm that the "Allow remote shopping assistance" option is set to "Yes" by default for all customers.

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9

Re: Allow remote shopping assistance ... feature How to override enable by default

hi @patrickpla5aa2 You can get the answer from the below link 
https://bnethos.com/enable-allow-remote-shopping-assistance-in-magento2-by-default/

Kudos if you got your answer