定制 jro/guest2customer 二次开发

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

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

jro/guest2customer

Composer 安装命令:

composer require jro/guest2customer

包简介

Automatically create a customer account after guest checkout in Magento 2

README 文档

README

If a Magento2 store allows guest checkout, you can get a lot of orders that are set as a “guest order”, with no account associated. For many sites, that is fine. However, either as part of a marketing strategy, or to assist smooth store administration, some store owners would like to retain guest checkout, but to have all the guest orders associated to actual customer accounts.

There are many extensions to address this need. This extension was developed to achieve three specific goals:

  • Free. This extension is not something you have to pay to use.
  • It works. A key API change starting at Magento 2.4.6 means many extensions that claim to convert guests into customers do not work any more. This was written against the latest version of Magento 2, and it works!
  • It is simple. There are no bundled extra features, and no admin UI. If you enable this module, it will do its one task.

Installation

Simply download using composer, enable the module, and recompile dependency injection:

composer require jro/guest2customer
php bin/magento module:enable Jro_Guest2Customer
php bin/magento setup:di:compile

Features

  • When a guest order is placed, and there is already a customer with the order email address, the order will be associated to the existing account.
  • When a guest order is placed, and there is no matching customer, a new customer will be created and the order associated with it. If the store is set to email new customers with details of how to set their password, this email will be triggered.
  • If a new customer is created, the billing and shipping address of the order will be set as the respective default addresses for the customer.
  • If the order was for an existing customer, the default billing and shipping addresses won't be changed, but the order’s shipping address will be added to the customer’s address book.
  • A message is displayed on screen after successful checkout, informing the customer that either an account has been created or that their order has been linked to their existing account.

As explained above (“it is simple”), no configuration is needed in the admin area to enable these features. Once the module is enabled, these things will happen.

Licence

The extension is licensed under GNU GPLv3. See the COPYING file for details.

Author

James Oakley
magentodev@m3.oakleys.org
https://git.oakleys.org
https://www.oakleys.org.uk

Homepage

The homepage of this extension is https://git.oakleys.org/JamesOakley/magento-guest2customer.

Please use the issue queue there for any support requests, although this extension is provided “as-is” so support is on a goodwill and best-effort basis.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固