Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7581
    MixedIndustries
    Participant

    Dear Sir/Madam,

    If I create a woocommerce user and login everything is oke but if i change this account to a copy of the woocommerce customer I can’t login again. With this same user.

    How can I solve this? I looks like the customer rol isn’t copied wright.

    Dave

    #7585
    Vladimir
    Keymaster

    Hi Dave,

    This is the WooCommerce code which creates the ‘customer’ role:

    
    		// Customer role.
    		add_role(
    			'customer',
    			'Customer',
    			array(
    				'read' => true,
    			)
    		);
    

    As you see it contains the single ‘read’ user capability. Does your copy contains the same ‘read’ capability?

    A possible problem would be related to other plugin or theme code and/or options which prevents login with role different than the ‘customer’. Try to deactivate all plugins and activate WordPress default 2021 theme. Will it change this? If Yes, then you can isolate a source of the problem activating plugins back one by one with a new login test.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.