定制 fond-of-spryker/mimic-customer-account 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-08