maxmage/disable-registration

为Magento 2提供的模块,允许在前端禁用客户注册

安装: 13

依赖者: 0

建议者: 0

安全性: 0

星标: 2

关注者: 1

分支: 0

开放问题: 0

类型:magento2-module

1.0.0 2018-02-08 17:40 UTC

This package is not auto-updated.

Last update: 2024-09-27 00:34:17 UTC


README

为Magento 2提供的模块,允许在前端禁用客户注册。通过管理后台创建客户仍然可用

安装

  1. 进入Magento 2的根目录

  2. 输入以下命令安装模块

    composer require maxmage/disable-registration
    

    等待依赖更新。

  3. 输入以下命令启用模块

    php bin/magento module:enable MaxMage_DisableRegistration
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:clean
    

配置

  1. 在Magento管理后台的“商店”>“配置”>“客户”>“禁用注册”中启用“禁用注册”模块。

    启用的模块将自动禁用客户注册

    Disable/Enable Customer Registration

默认的Magento客户登录页面具有注册功能,模块激活前的结果

Customer Page Login Page before module activation

激活“禁用客户注册”模块后,访问者将无法看到注册块,通过注册链接访问将被自动重定向到登录页面

Customer Page Login Page after module activation