fond-of-spryker/mimic-customer-account
Composer 安装命令:
composer require fond-of-spryker/mimic-customer-account
包简介
Mimic user accounts in Spryker
README 文档
README
This Spryker package allows to create environments where users don't log in but customer accounts exist.
The package contains two CheckoutDoSaveOrder plugins to support that functionality.
One plugin is used to force the customer to register in the background and the other will update anonymous quotes when orders are done via rest-api.
Installation
composer require fond-of-spryker/mimic-customer-account
Plugin Structure
ForceRegisterCustomerOrderSavePlugin
Specification:
- Check if customer already exists in database
- Update customer transfer with existing id and reference
- Force isGuest to be false
The plugin needs to be initialized in your CheckoutDepenendcyProvider before the CustomerOrderSavePlugin.
UpdateGuestCartOrderSavePlugin
Specification:
- Validate if the quote is anonymous
- Update customer reference for quote identified by uuid
- Update quote transfer if quote has been updated
The plugin should be initialized in your CheckoutDepenendcyProvider after the CustomerOrderSavePlugin.
统计信息
- 总下载量: 18.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-08