1account/1account-age-verification

Magento 2 客户 1Account 验证

安装: 182

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:magento2-module

1.0.4 2022-06-28 12:00 UTC

This package is auto-updated.

Last update: 2024-09-28 16:51:55 UTC


README

此扩展的功能

前端

  • 只有通过 1Account 用户验证的用户可以下订单。
  • 保存用户的 AV_STATUS 以供下次订单使用。
  • 如果访客可以在您的商店中下订单,则他们的 AV_STATUS 将保存到 cookies 中。

后端

  • 在客户网格中显示客户的 AV_STATUSES。
  • 可以更改用户的 AV_STATUSES。
  • 在订单网格中显示订单的 AV_STATUSES。
  • 可以更改订单的 AV_STATUSES。

安装说明

步骤 1:使用 Composer 下载扩展

1.1 使用 SSH 连接登录到您的 Magento 2 主机网站

1.2 进入 Magento 根目录

cd /Magento_root_directory

1.2 下载扩展

composer require 1account/1account-age-verification

步骤 2:启用扩展

2.1 检查模块 OneAccount_OneAccountAgeVerification 是否成功上传

php bin/magento module:status

// output should contain OneAccount_OneAccountAgeVerification at "List of disabled modules"

List of disabled modules:
OneAccount_OneAccountAgeVerification

2.2 启用模块

php bin/magento module:enable OneAccount_OneAccountAgeVerification

// output

The following modules have been enabled:
- OneAccount_OneAccountAgeVerification
(我们建议启用维护模式以清楚停机时间)
php bin/magento maintenance:enable

2.4 运行升级命令

php bin/magento setup:upgrade

2.5 重新编译您的网站

php bin/magento setup:di:compile

2.6 重建静态内容

php bin/magento setup:static-content:deploy

2.7 重新索引您的商店

php bin/magento indexer:reindex

2.8 清除缓存

php bin/magento c:c

(如果没有命令 bin/magento c:c,请转到管理员面板 -> 系统 -> 缓存管理并按 "清除 Magento 缓存")

(如果之前已启用,请禁用维护模式)
php bin/magento maintenance:disable

结果

后端

启用扩展

转到

Admin Panel->Stores->Configuration->ONEACCOUNT->General
  • 在启用模块中选择是
  • 从 1account.net 输入您的有效 clientID 和 clientSecret
  • 按保存配置,如果数据有效,avLevel 将自动设置
  • 在订单列表中出现了一个新的列 AV 验证
    • 它在订单创建时自动设置
    • 您可以在订单查看页面的 "1Account 状态" 选项卡中手动更改它
  • 在客户列表中出现了一个新的列 AV 状态
    • 当客户在结账时验证时自动设置
    • 您可以在客户查看页面的 "账户信息" 选项卡中手动更改它

前端

在创建订单之前下订单时,您将看到 1Account 模态框。如果通过 1Account 验证,则订单将继续。

删除模块

composer remove 1account/1account-age-verification